Skip to content

Commit

Permalink
Allowing an alternate notation to set region coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Dec 11, 2024
1 parent 3e42afe commit 4976c76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,13 @@ void respond_request(struct Request *req) {
if (remain != value)
osds[id].posy = result;
}
else if (EQUALS(key, "pos")) {
int x, y;
if (sscanf(value, "%d,%d", &x, &y) == 2) {
osds[id].posx = x;
osds[id].posy = y;
}
}
}
osds[id].updt = 1;
}
Expand Down

0 comments on commit 4976c76

Please sign in to comment.