1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-23 14:22:06 +00:00

Fix -Wempty-body warnings on GCC.

This commit is contained in:
Arthur O'Dwyer
2018-07-13 23:45:14 -07:00
parent 76d0538b3c
commit fbc7cd3212
6 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -1320,7 +1320,7 @@ namespace mapeditor {
if(vernum >= 0xA0A0) {
int tg, wp;
int nt;
fscanf(f, "%d%d%d%d\n", &tg, &nt, &wp, &patterns::subpattern_flags);
hr::ignore(fscanf(f, "%d%d%d%d\n", &tg, &nt, &wp, &patterns::subpattern_flags));
patterns::whichPattern = wp;
if(tg != geometry) { targetgeometry = eGeometry(tg); stop_game_and_switch_mode(rg::geometry); }
if(bool(nt) != nonbitrunc) stop_game_and_switch_mode(rg::bitrunc);