- moved the global spot state into FLevelLocals.
This way it doesn't even have to be a thinker.
This commit is contained in:
parent
7b16433e97
commit
dab68184f5
14 changed files with 39 additions and 44 deletions
|
|
@ -2981,6 +2981,8 @@ enum T_Flags
|
|||
TF_SENSITIVEZ = 0x00000800, // Fail if the actor wouldn't fit in the position (for Z).
|
||||
};
|
||||
|
||||
DSpotState *GetSpotState(FLevelLocals *self, int create);
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, A_Teleport)
|
||||
{
|
||||
PARAM_ACTION_PROLOGUE(AActor);
|
||||
|
|
@ -3037,7 +3039,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_Teleport)
|
|||
}
|
||||
}
|
||||
|
||||
DSpotState *state = DSpotState::GetSpotState();
|
||||
DSpotState *state = GetSpotState(&level, false);
|
||||
if (state == NULL)
|
||||
{
|
||||
return numret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue