shithub: choc

Download patch

ref: 58fee652c452dde03ab5b1a4528e713e0b97a459
parent: 14fc72bbad5b17b824fdf0868d98db28eb6352f7
parent: af02c3dbfd171f8d8a8da3ebce9cc1af7e31847d
author: Fabian Greffrath <fabian@greffrath.com>
date: Fri Sep 15 19:32:57 EDT 2017

Merge pull request #940 from chocolate-doom/shorttics

add a -shorttics command line option

--- a/src/doom/d_net.c
+++ b/src/doom/d_net.c
@@ -150,8 +150,9 @@
     settings->respawn_monsters = respawnparm;
     settings->timelimit = timelimit;
 
-    settings->lowres_turn = M_CheckParm("-record") > 0
-                         && M_CheckParm("-longtics") == 0;
+    settings->lowres_turn = (M_ParmExists("-record")
+                         && !M_ParmExists("-longtics"))
+                          || M_ParmExists("-shorttics");
 }
 
 static void InitConnectData(net_connect_data_t *connect_data)
@@ -194,8 +195,9 @@
 
     // Are we recording a demo? Possibly set lowres turn mode
 
-    connect_data->lowres_turn = M_CheckParm("-record") > 0
-                             && M_CheckParm("-longtics") == 0;
+    connect_data->lowres_turn = (M_ParmExists("-record")
+                             && !M_ParmExists("-longtics"))
+                              || M_ParmExists("-shorttics");
 
     // Read checksums of our WAD directory and dehacked information
 
--- a/src/net_dedicated.c
+++ b/src/net_dedicated.c
@@ -41,7 +41,7 @@
     "-deh", "-iwad", "-cdrom", "-gameversion", "-nomonsters", "-respawn",
     "-fast", "-altdeath", "-deathmatch", "-turbo", "-merge", "-af", "-as",
     "-aa", "-file", "-wart", "-skill", "-episode", "-timer", "-avg", "-warp",
-    "-loadgame", "-longtics", "-extratics", "-dup", NULL,
+    "-loadgame", "-longtics", "-extratics", "-dup", "-shorttics", NULL,
 };
 
 static void CheckForClientOptions(void)