mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-06 04:17:58 +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:
@@ -71,7 +71,7 @@ bool advance_walkers(int delta) {
|
||||
auto& w = walkers[i];
|
||||
hyperpoint h = tC0(w.T);
|
||||
if(WDIM == 2) {
|
||||
w.T = w.T * xspinpush(randd() * 2 * M_PI, step_size);
|
||||
w.T = w.T * xspinpush(randd() * TAU, step_size);
|
||||
}
|
||||
else {
|
||||
hyperpoint dir = random_spin() * xtangent(step_size);
|
||||
|
Reference in New Issue
Block a user