From: Rick L Bird Date: Sun, 17 Apr 2011 06:56:44 +0000 (-0400) Subject: PID switch on @wait command left out. X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=58eb32af2f90a415e57281612cb2428756eb83da;p=cobramush.git PID switch on @wait command left out. Fixes #48 --- diff --git a/src/cmds.c b/src/cmds.c index fd051ab..529fa72 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -1052,8 +1052,12 @@ COMMAND (cmd_version) { COMMAND (cmd_wait) { int qid; - qid = do_wait(player, cause, arg_left, arg_right, SW_ISSET(sw, SWITCH_UNTIL), 0); - atr_add(player, "QID", tprintf("%d", qid), player, 0); + if (SW_BY_NAME(sw, "PID")) + do_waitpid(player, arg_left, arg_right, SW_ISSET(sw, SWITCH_UNTIL)); + else { + qid = do_wait(player, cause, arg_left, arg_right, SW_ISSET(sw, SWITCH_UNTIL), 0); + atr_add(player, "QID", tprintf("%d", qid), player, 0); + } } COMMAND (cmd_wall) {