shithub: choc

Download patch

ref: af02c3dbfd171f8d8a8da3ebce9cc1af7e31847d
parent: 11035e797c56d66d3afebdc5041a7fce26aba36d
author: Fabian Greffrath <fabian@greffrath.com>
date: Fri Sep 15 19:32:25 EDT 2017

replace M_CheckParm() with M_ParmExists()

--- a/src/doom/d_net.c
+++ b/src/doom/d_net.c
@@ -152,9 +152,9 @@
     settings->respawn_monsters = respawnparm;
     settings->timelimit = timelimit;
 
-    settings->lowres_turn = (M_CheckParm("-record") > 0
-                          && M_CheckParm("-longtics") == 0)
-                          || M_CheckParm("-shorttics") > 0;
+    settings->lowres_turn = (M_ParmExists("-record")
+                         && !M_ParmExists("-longtics"))
+                          || M_ParmExists("-shorttics");
 }
 
 static void InitConnectData(net_connect_data_t *connect_data)
@@ -197,9 +197,9 @@
 
     // Are we recording a demo? Possibly set lowres turn mode
 
-    connect_data->lowres_turn = (M_CheckParm("-record") > 0
-                              && M_CheckParm("-longtics") == 0)
-                              || M_CheckParm("-shorttics") > 0;
+    connect_data->lowres_turn = (M_ParmExists("-record")
+                             && !M_ParmExists("-longtics"))
+                              || M_ParmExists("-shorttics");
 
     // Read checksums of our WAD directory and dehacked information