From 8ce6a025e6dc52a592f824710baad698fdbc8d9f Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 13 May 2006 01:07:06 +0000 Subject: [PATCH] Detect the gamevar THISACTOR in a couple of commands that take player numbers instead of sprite numbers git-svn-id: https://svn.eduke32.com/eduke32@165 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gameexec.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 994330923..f4c253687 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -4078,8 +4078,13 @@ SKIPJIBS: long var1, var2; insptr++; + var1 = GetGameVarID(*insptr++,g_i,g_p); - var2 = GetGameVarID(*insptr++,g_i,g_p); + if(tw == CON_OPERATEACTIVATORS && *insptr == g_iThisActorID) + { + var2 = g_p; + insptr++; + } else var2 = GetGameVarID(*insptr++,g_i,g_p); switch(tw) { @@ -4154,8 +4159,14 @@ SKIPJIBS: { int i,j; insptr++; + i = GetGameVarID(*insptr++, g_i, g_p); - j = GetGameVarID(*insptr++, g_i, g_p); + if(tw == CON_GETPNAME && *insptr == g_iThisActorID) + { + j = g_p; + insptr++; + } else j = GetGameVarID(*insptr++, g_i, g_p); + switch(tw) { case CON_GETPNAME: