1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-08 04:29:02 +00:00

refactored some global and stereo:: variables into display_data structure

This commit is contained in:
Zeno Rogue
2018-11-17 19:24:02 +01:00
parent 680dca90c8
commit d935febf09
28 changed files with 445 additions and 389 deletions

View File

@@ -206,8 +206,8 @@ void create_model() {
int v = global_v;
rug::clear_model();
ld x = (mousex - vid.xcenter + .0) / vid.xres;
ld y = (mousey - vid.ycenter + .0) / vid.yres;
ld x = (mousex - current_display->xcenter + .0) / vid.xres;
ld y = (mousey - current_display->ycenter + .0) / vid.yres;
ld alpha = atan2(y, x);
ld h = hypot(x, y);