Fixed BT_RUN getting toggled off on command clear
This doesn't get delta'd when networking so its state has to be kept between wipes since it's built entirely from client data.
This commit is contained in:
parent
989a355f80
commit
e981064e5c
1 changed files with 2 additions and 0 deletions
|
|
@ -407,7 +407,9 @@ void Net_ResetCommands(bool midTic)
|
|||
|
||||
// Make sure not to run its current command either.
|
||||
auto& curTic = state.Tics[tic % BACKUPTICS];
|
||||
const int running = (curTic.Command.buttons & BT_RUN); // This isn't delta'd so needs to be kept.
|
||||
memset(&curTic.Command, 0, sizeof(curTic.Command));
|
||||
curTic.Command.buttons |= running;
|
||||
}
|
||||
|
||||
NetEvents.ResetStream();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue