diff options
Diffstat (limited to 'src/fpsgame/server.cpp')
| -rw-r--r-- | src/fpsgame/server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fpsgame/server.cpp b/src/fpsgame/server.cpp index be2b667..e085484 100644 --- a/src/fpsgame/server.cpp +++ b/src/fpsgame/server.cpp @@ -254,7 +254,7 @@ namespace server int calcpushrange() { ENetPeer *peer = getclientpeer(ownernum); - return PUSHMILLIS + (peer ? peer->roundTripTime + peer->roundTripTimeVariance : ENET_PEER_DEFAULT_ROUND_TRIP_TIME); + return PUSHMILLIS + ((peer) ? (int) (peer->roundTripTime + peer->roundTripTimeVariance) : (int) ENET_PEER_DEFAULT_ROUND_TRIP_TIME); } bool checkpushed(int millis, int range) @@ -535,6 +535,7 @@ namespace server case '!': mode++; if(mode[0] != '?') break; + [[fallthrough]]; case '?': mode++; loopk(NUMGAMEMODES) if(searchmodename(gamemodes[k].name, mode)) |
