CON_CANSEESPR, whitespace

git-svn-id: https://svn.eduke32.com/eduke32@106 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-04-24 05:42:29 +00:00
parent b6f86cc379
commit 2fa4b89f17
4 changed files with 29 additions and 7 deletions

View file

@ -434,6 +434,7 @@ char *keyw[] = {
"getinput", // 287
"save", // 288
"cansee", // 289
"canseespr", // 290
"<null>"
};
@ -3881,6 +3882,11 @@ char parsecommand(void)
transvar();
break;
case CON_CANSEESPR:
transmultvars(2);
transvartype(GAMEVAR_FLAG_READONLY);
break;
case CON_ROTATEPOINT:
case CON_NEARTAG:
transmultvars(5);

View file

@ -714,5 +714,6 @@ enum keywords {
CON_GETINPUT, // 287
CON_SAVE, // 288
CON_CANSEE, // 289
CON_CANSEESPR, // 290
END
};

View file

@ -4067,6 +4067,21 @@ SKIPJIBS:
break;
}
case CON_CANSEESPR:
{
long var1, var2, rvar;
insptr++;
var1 = GetGameVarID(*insptr++,g_i,g_p);
var2 = GetGameVarID(*insptr++,g_i,g_p);
rvar = *insptr++;
SetGameVarID(rvar, cansee(sprite[var1].x,sprite[var1].y,sprite[var1].z,sprite[var1].sectnum,
sprite[var2].x,sprite[var2].y,sprite[var2].z,sprite[var2].sectnum), g_i, g_p);
break;
}
case CON_OPERATERESPAWNS:
case CON_OPERATEMASTERSWITCHES:
case CON_CHECKACTIVATORMOTION: