translation animations now return to the start if they hit a trap land

This commit is contained in:
Zeno Rogue 2018-09-10 19:39:44 +02:00
parent 94ad7744ad
commit df0be69cce
1 changed files with 5 additions and 0 deletions

View File

@ -424,6 +424,11 @@ void apply() {
conformal::movetophase();
}
else {
if(inmirror(centerover.at) || (hyperbolic && !quotient &&
centerover.at->land != cwt.at->land && among(centerover.at->land, laHaunted, laIvoryTower, laDungeon, laEndorian) && centerover.at->landparam >= 10
) ) {
fullcenter(); View = spin(rand() % 1000) * View;
}
View = spin(movement_angle * M_PI / 180) * ypush(shift_angle * M_PI / 180) * xpush(cycle_length * t / period) * ypush(-shift_angle * M_PI / 180) *
spin(-movement_angle * M_PI / 180) * View;
moved();