From 4e148f00e62dc84bc50dd5f57d4bc116198c4fb4 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sun, 19 Jun 2016 11:47:30 +0200 Subject: [PATCH] - Fixed wrong Skulltag ConsoleCommand pcode name. Also report this pcode as not supported by the program. --- src/p_acs.cpp | 6 +++++- src/p_acs.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 29c9fe8fe..5df4da472 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -9574,8 +9574,12 @@ scriptwait: break; case PCD_CONSOLECOMMAND: + case PCD_CONSOLECOMMANDDIRECT: Printf (TEXTCOLOR_RED GAMENAME " doesn't support execution of console commands from scripts\n"); - sp -= 3; + if (pcd == PCD_CONSOLECOMMAND) + sp -= 3; + else + pc += 3; break; } } diff --git a/src/p_acs.h b/src/p_acs.h index e3c502f7c..9cd4eedd7 100644 --- a/src/p_acs.h +++ b/src/p_acs.h @@ -519,7 +519,7 @@ public: /*130*/ PCD_LSPEC6DIRECT, // be given names like PCD_DUMMY. PCD_PRINTNAME, PCD_MUSICCHANGE, - PCD_TEAM2FRAGPOINTS, + PCD_CONSOLECOMMANDDIRECT, PCD_CONSOLECOMMAND, PCD_SINGLEPLAYER, // [RH] End of Skull Tag p-codes PCD_FIXEDMUL,