mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
translation animations now return to the start if they hit a trap land
This commit is contained in:
parent
94ad7744ad
commit
df0be69cce
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user