- Don't set both self and pointer's z to spotz when teleporting.

This commit is contained in:
MajorCooke 2016-01-20 18:50:30 -06:00
parent 710fa55288
commit 09733d8083

View file

@ -4380,7 +4380,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Teleport)
}
ref->SetZ((flags & TF_USESPOTZ) ? spot->Z() : ref->floorz, false);
self->SetZ((flags & TF_USESPOTZ) ? spot->Z() : self->floorz, false);
if (!(flags & TF_KEEPANGLE))
ref->angle = spot->angle;