diff options
-rw-r--r-- | src/doom/d_net.c | 3 | ||||
-rw-r--r-- | src/heretic/d_net.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/doom/d_net.c b/src/doom/d_net.c index e43ac4b2..e30ead83 100644 --- a/src/doom/d_net.c +++ b/src/doom/d_net.c @@ -430,12 +430,13 @@ static boolean PlayersInGame(void) static int GetLowTic(void) { - int i; int lowtic; #ifdef FEATURE_MULTIPLAYER if (net_client_connected) { + int i; + lowtic = INT_MAX; for (i=0; i<MAXPLAYERS; ++i) diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c index f6121e91..9258b7d7 100644 --- a/src/heretic/d_net.c +++ b/src/heretic/d_net.c @@ -25,6 +25,8 @@ // d_net.c // This version has the fixed ticdup code +#include <stdlib.h> + #include "doomdef.h" #include "doomkeys.h" |