- Added translation support to multipatch textures. Incomplete and not tested yet!
- Added Martin Howe's morph weapon update. SVN r916 (trunk)
This commit is contained in:
parent
ce5d4dba02
commit
b2bfad0c50
19 changed files with 645 additions and 142 deletions
|
|
@ -5342,21 +5342,18 @@ int DLevelScript::RunScript ()
|
|||
|
||||
case PCD_CHECKPLAYERCAMERA:
|
||||
{
|
||||
AActor *actor = SingleActorFromTID(STACK(1), activator);
|
||||
|
||||
if(actor != NULL && actor->player != NULL)
|
||||
{
|
||||
if(actor->player->camera != actor->player->mo)
|
||||
{
|
||||
STACK(1) = actor->player->camera->tid;
|
||||
}
|
||||
else
|
||||
{
|
||||
STACK(1) = 0;
|
||||
}
|
||||
int playernum = STACK(1);
|
||||
|
||||
if (playernum < 0 || playernum >= MAXPLAYERS || !playeringame[playernum] || players[playernum].camera == NULL)
|
||||
{
|
||||
STACK(1) = -1;
|
||||
}
|
||||
else STACK(1) = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
STACK(1) = players[playernum].camera->tid;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue