home · contact · privacy
Some code-internal restructuring following the assumption that game map height /
[plomrogue] / src / client / draw_wins.c
index 54191f614832b1cf9428f97e1735158a64fc436d..f10e9cb80a20d50d15c9a49a0b1312baa7879379 100644 (file)
@@ -323,7 +323,7 @@ extern void draw_win_map(struct Win * win)
 {
     try_resize_winmap(win, world.map.size.y, world.map.size.x);
     uint16_t z = 0;
-    uint16_t x, y;
+    uint8_t x, y;
     for (y = 0; y < world.map.size.y; y++)
     {
         for (x = 0; x < world.map.size.x; x++)
@@ -347,7 +347,7 @@ extern void draw_win_info(struct Win * win)
     sprintf(text, "%s%d%s%d%s%d",
             dsc_turn, world.turn,
             dsc_hitpoints, world.player_lifepoints,
-            dsc_score, world.score);
+            dsc_score, world.player_score);
     add_text_with_linebreaks(win, text);
 }
 
@@ -384,7 +384,7 @@ extern void draw_win_available_keybindings(struct Win * win)
 {
     char * title = "Active window's keybindings:";
     struct KeyBinding * kb_p;
-    struct Win * w = get_win_by_id(world.windb.active);
+    struct Win * w = get_win_by_id(world.winDB.active);
     if     (0 == w->view)
     {
         kb_p = w->kb.kbs;