mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-31 22:12:59 +00:00
velocity converter tiles
This commit is contained in:
@@ -271,6 +271,12 @@ bool timestamp::check_crashes(level* lev, hyperpoint owhere, hyperpoint oflyvel,
|
||||
tramp_head = heading_angle;
|
||||
}
|
||||
|
||||
else if(ch == 'V') {
|
||||
/* convert velocity on velocity converter */
|
||||
vel = hypot_d(3, flyvel);
|
||||
on_surface = lev;
|
||||
}
|
||||
|
||||
else {
|
||||
/* waste some energy */
|
||||
flyvel = flyvel - dot_d(3, flyvel, dz) * dz;
|
||||
|
||||
Reference in New Issue
Block a user