mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
just in case complex values are now accepted as dist and angle.
This commit is contained in:
parent
d95615bea2
commit
fc1b590655
@ -134,12 +134,12 @@ EX void load_tile(exp_parser& ep, bool unit) {
|
||||
cc.id = isize(current.shapes) - 1;
|
||||
cc.flags = 0;
|
||||
while(ep.next() != ')') {
|
||||
ld dist = 1;
|
||||
cld dist = 1;
|
||||
if(!unit) {
|
||||
dist = ep.rparse(0);
|
||||
dist = ep.parse(0);
|
||||
ep.force_eat(",");
|
||||
}
|
||||
ld angle = ep.rparse(0);
|
||||
cld angle = ep.parse(0);
|
||||
cc.edges.push_back(real(dist * ep.extra_params["distunit"]));
|
||||
cc.angles.push_back(real(angle * ep.extra_params["angleunit"] + ep.extra_params["angleofs"]));
|
||||
if(ep.eat(",")) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user