mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-10 06:16:00 +00:00
used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable
This commit is contained in:
@@ -239,7 +239,7 @@ ld prec = 5;
|
||||
void draw_earth() {
|
||||
load_planets();
|
||||
|
||||
shiftmatrix S = ggmatrix(currentmap->gamestart()) * spin(90*degree);
|
||||
shiftmatrix S = ggmatrix(currentmap->gamestart()) * spin90();
|
||||
|
||||
ld mte = radius[src_planet] / radius[tgt_planet];
|
||||
|
||||
@@ -425,7 +425,7 @@ EX void compare() {
|
||||
dark = dark * dark * (3-2*dark);
|
||||
}
|
||||
alpha = dark * max_alpha;
|
||||
View = cspin(0, 2, (rot - lrot) * 2 * M_PI) * View;
|
||||
View = cspin(0, 2, (rot - lrot) * TAU) * View;
|
||||
lrot = rot;
|
||||
anims::moved();
|
||||
}
|
||||
|
Reference in New Issue
Block a user