From 1e21ebad5d265e9fd3a1722231db49170f381f26 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 26 Feb 2012 03:36:05 +0000 Subject: [PATCH] - Let puke and pukename take up to four script parameters. - Pass ACS_ExecuteWithResult's fifth argument as a fourth script parameter. - Simplify P_StartScript()'s usage. SVN r3394 (trunk) --- src/actionspecials.h | 2 +- src/c_cmds.cpp | 16 +++--- src/d_net.cpp | 17 +++---- src/g_hexen/a_heresiarch.cpp | 2 +- src/g_hexen/a_korax.cpp | 7 ++- src/p_acs.cpp | 97 +++++++++++++++++++----------------- src/p_acs.h | 4 +- src/p_lnspec.cpp | 45 +++++++++++++---- src/p_map.cpp | 8 +-- src/p_spec.h | 8 ++- 10 files changed, 117 insertions(+), 89 deletions(-) diff --git a/src/actionspecials.h b/src/actionspecials.h index a1d34a54f..fbdc41a50 100644 --- a/src/actionspecials.h +++ b/src/actionspecials.h @@ -82,7 +82,7 @@ DEFINE_SPECIAL(ACS_Execute, 80, 1, 5, 5) DEFINE_SPECIAL(ACS_Suspend, 81, 2, 2, 2) DEFINE_SPECIAL(ACS_Terminate, 82, 2, 2, 2) DEFINE_SPECIAL(ACS_LockedExecute, 83, 5, 5, 5) -DEFINE_SPECIAL(ACS_ExecuteWithResult, 84, 1, 4, 4) +DEFINE_SPECIAL(ACS_ExecuteWithResult, 84, 1, 5, 5) DEFINE_SPECIAL(ACS_LockedExecuteDoor, 85, 5, 5, 5) DEFINE_SPECIAL(Polyobj_MoveToSpot, 86, 3, 3, 3) DEFINE_SPECIAL(Polyobj_Stop, 87, 1, 1, 1) diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index da8131027..339d56740 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -451,9 +451,9 @@ CCMD (puke) { int argc = argv.argc(); - if (argc < 2 || argc > 5) + if (argc < 2 || argc > 6) { - Printf ("Usage: puke