mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-13 12:51:44 +00:00
ru:: removed warning
This commit is contained in:
@@ -80,7 +80,6 @@ void load_nonhyperbolic() {
|
||||
if(flip_y == 0 || flip_y == 255) loc.fixed = true;
|
||||
}
|
||||
|
||||
int it = 0;
|
||||
while(true) {
|
||||
ld err = 0;
|
||||
for(int y=0; y<256; y++) for(int x=0; x<256; x++) {
|
||||
@@ -90,7 +89,6 @@ void load_nonhyperbolic() {
|
||||
err += abs(pot - loc.potential);
|
||||
loc.potential = pot;
|
||||
}
|
||||
it++;
|
||||
if(err < 1e-2) break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -505,6 +505,12 @@ void add_platf_hooks() {
|
||||
|
||||
rogueviz::rv_hook(hooks_drawcell, 90, draw_room_on_map);
|
||||
|
||||
rogueviz::rv_change(shot::gamescreen_in_shots, false);
|
||||
rogueviz::rv_hook(shot::hooks_hqshot, 100, [] {
|
||||
render_room(current_room);
|
||||
draw_room();
|
||||
});
|
||||
|
||||
rogueviz::rv_hook(mapstream::hooks_savemap, 100, [] (hstream& f) {
|
||||
f.write<int>(67);
|
||||
for(auto& p: rooms) {
|
||||
|
||||
Reference in New Issue
Block a user