1
0
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:
Zeno Rogue
2022-04-09 12:25:02 +02:00
parent e318410bff
commit ec033786e1
2 changed files with 4 additions and 25 deletions

View File

@@ -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;