From e981064e5cdb999c024e4c133136ceb946cc493d Mon Sep 17 00:00:00 2001 From: Boondorl Date: Sat, 14 Jun 2025 11:18:42 -0400 Subject: [PATCH] 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. --- src/d_net.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d_net.cpp b/src/d_net.cpp index b44bdbafd..b92831db9 100644 --- a/src/d_net.cpp +++ b/src/d_net.cpp @@ -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();