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
This commit is contained in:
terminx 2006-05-13 01:07:06 +00:00
parent c6bd11d7bd
commit 8ce6a025e6

View file

@ -4078,8 +4078,13 @@ SKIPJIBS:
long var1, var2; long var1, var2;
insptr++; insptr++;
var1 = GetGameVarID(*insptr++,g_i,g_p); 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) switch(tw)
{ {
@ -4154,8 +4159,14 @@ SKIPJIBS:
{ {
int i,j; int i,j;
insptr++; insptr++;
i = GetGameVarID(*insptr++, g_i, g_p); 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) switch(tw)
{ {
case CON_GETPNAME: case CON_GETPNAME: