shithub: choc

Download patch

ref: 22b0a5610f608ae3931f84b409434f5fe9264a0e
parent: 7809162616f7c802945c430b51a0f656c1859144
author: kraflab <kraflab@gmail.com>
date: Sun Jul 25 14:52:05 EDT 2021

Simplify net demo checks

--- a/src/hexen/g_game.c
+++ b/src/hexen/g_game.c
@@ -2095,8 +2095,8 @@
         PlayerClass[i] = *demo_p++;
     }
 
-    if (playeringame[1] || M_CheckParm("-solo-net") > 0
-                        || M_CheckParm("-netdemo") > 0)
+    if (playeringame[1] || M_ParmExists("-solo-net")
+                        || M_ParmExists("-netdemo"))
     {
         netgame = true;
     }
@@ -2110,7 +2110,7 @@
     usergame = false;
     demoplayback = true;
 
-    if (netgame == true)
+    if (netgame)
     {
         netdemo = true;
     }
@@ -2148,8 +2148,8 @@
         PlayerClass[i] = *demo_p++;
     }
 
-    if (playeringame[1] || M_CheckParm("-solo-net") > 0
-                        || M_CheckParm("-netdemo") > 0)
+    if (playeringame[1] || M_ParmExists("-solo-net")
+                        || M_ParmExists("-netdemo"))
     {
         netgame = true;
     }
@@ -2162,7 +2162,7 @@
     timingdemo = true;
     singletics = true;
 
-    if (netgame == true)
+    if (netgame)
     {
         netdemo = true;
     }