mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +00:00
- fixed crash when actor is destroyed during spawning
This only applies to spawning via summon... CCMDs Now 'summon decal 0' no longer crashes the game
This commit is contained in:
parent
5d27c16f30
commit
43b94d829e
1 changed files with 10 additions and 9 deletions
|
@ -2364,7 +2364,7 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
|
|||
spawned->flags &= ~MF_FRIENDLY;
|
||||
spawned->health = spawned->SpawnHealth();
|
||||
}
|
||||
}
|
||||
|
||||
if (type >= DEM_SUMMON2 && type <= DEM_SUMMONFOE2)
|
||||
{
|
||||
spawned->Angles.Yaw = source->Angles.Yaw - angle;
|
||||
|
@ -2379,6 +2379,7 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case DEM_SPRAY:
|
||||
|
|
Loading…
Reference in a new issue