]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/edit.c
Clean up unreadable assignments within if conditionals
[empserver] / src / lib / commands / edit.c
index 3a8656f7f8146061c360cd5d307800ad8782da01..6b370b3f6a30e37477915e67b719db1feebf2258 100644 (file)
@@ -85,9 +85,10 @@ edit(void)
     char buf[1024];
     char ewhat;
 
-    if ((what = getstarg(player->argp[1],
-                        "Edit What (country, land, ship, plane, nuke, unit)? ",
-                        buf)) == 0)
+    what = getstarg(player->argp[1],
+                   "Edit What (country, land, ship, plane, nuke, unit)? ",
+                   buf);
+    if (what == 0)
        return RET_SYN;
     ewhat = what[0];
     switch (ewhat) {