Fixed: Co-op players could spawn at (0,0) if no start spots for them
- Check if a co-op start exists. If not, pick one at random. - Don't telefrag other players when spawning in co-op games, since you're allowed to move out of other players now.
This commit is contained in:
parent
058bfdea26
commit
87dee5c611
3 changed files with 12 additions and 7 deletions
|
|
@ -504,7 +504,7 @@ bool P_TeleportMove(AActor *thing, fixed_t x, fixed_t y, fixed_t z, bool telefra
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
void P_PlayerStartStomp(AActor *actor)
|
||||
void P_PlayerStartStomp(AActor *actor, bool mononly)
|
||||
{
|
||||
AActor *th;
|
||||
FBlockThingsIterator it(FBoundingBox(actor->X(), actor->Y(), actor->radius));
|
||||
|
|
@ -525,6 +525,9 @@ void P_PlayerStartStomp(AActor *actor)
|
|||
if (th->player == NULL && !(th->flags3 & MF3_ISMONSTER))
|
||||
continue;
|
||||
|
||||
if (th->player != NULL && mononly)
|
||||
continue;
|
||||
|
||||
if (actor->Z() > th->Top())
|
||||
continue; // overhead
|
||||
if (actor->Top() < th->Z())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue