mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-17 06:07:12 +00:00
arb:: removed legacy
This commit is contained in:
8
util.cpp
8
util.cpp
@@ -262,13 +262,7 @@ cld exp_parser::parse(int prio) {
|
||||
while(result > 2 * M_PI) result -= 2 * M_PI;
|
||||
if(result > M_PI) result = 2 * M_PI - result;
|
||||
|
||||
if(arb::legacy) {
|
||||
res = M_PI - result;
|
||||
if (auto *angleofs = hr::at_or_null(extra_params, "angleofs"))
|
||||
res -= *angleofs;
|
||||
}
|
||||
else
|
||||
res = result;
|
||||
res = result;
|
||||
|
||||
if (auto *angleunit = hr::at_or_null(extra_params, "angleunit"))
|
||||
res /= *angleunit;
|
||||
|
||||
Reference in New Issue
Block a user