- fixed: A_CheckTerrain must add to the actor's current velocity, not set it.

This commit is contained in:
Christoph Oelckers 2016-07-04 00:39:35 +02:00
parent d6d9057f1f
commit d87665bfe0

View file

@ -317,7 +317,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_CheckTerrain)
int anglespeed = tagManager.GetFirstSectorTag(sec) - 100;
double speed = (anglespeed % 10) / 16.;
DAngle an = (anglespeed / 10) * (360 / 8.);
self->VelFromAngle(an, speed);
self->Thrust(an, speed);
}
}
return 0;