From 58eb32af2f90a415e57281612cb2428756eb83da Mon Sep 17 00:00:00 2001 From: Rick L Bird Date: Sun, 17 Apr 2011 02:56:44 -0400 Subject: [PATCH] PID switch on @wait command left out. Fixes #48 --- src/cmds.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) { -- 2.30.2