Merge branch 'spb-stuff' into 'v1'

Fix SPB being way too fast in current sections where the player has no control

See merge request KartKrew/Kart!141
This commit is contained in:
Sal 2019-04-22 22:00:06 -04:00
commit 35c954ecc4
1 changed files with 3 additions and 0 deletions

View File

@ -8434,6 +8434,9 @@ void A_SPBChase(mobj_t *actor)
wspeed = (3*defspeed)/2;
if (wspeed < 20*actor->tracer->scale)
wspeed = 20*actor->tracer->scale;
if (actor->tracer->player->pflags & PF_SLIDING)
wspeed = actor->tracer->player->speed/2;
// ^^^^ current section: These are annoying, and grand metropolis in particular needs this.
hang = R_PointToAngle2(actor->x, actor->y, actor->tracer->x, actor->tracer->y);
vang = R_PointToAngle2(0, actor->z, dist, actor->tracer->z);