mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 06:41:59 +00:00
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:
parent
c6bd11d7bd
commit
8ce6a025e6
1 changed files with 13 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue