From 786f83429321dd397829f3482c1477cd1fba3feb Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sun, 8 Feb 2009 14:55:36 +0100 Subject: [PATCH] Fix bug in world map night time display The second "night" rectangle had the wrong height. --- tennix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tennix.c b/tennix.c index dae89ec..82ccdfa 100644 --- a/tennix.c +++ b/tennix.c @@ -293,7 +293,7 @@ int main( int argc, char** argv) { day_night(get_image_width(GR_WORLDMAP), &night_start, &night_end); if (night_start > night_end) { rectangle_alpha(worldmap_xpos, worldmap_ypos, night_end, get_image_height(GR_WORLDMAP), 0, 0, 0, 150); - rectangle_alpha(worldmap_xpos+night_start, worldmap_ypos, get_image_width(GR_WORLDMAP)-night_start, 10, 0, 0, 0, 150); + rectangle_alpha(worldmap_xpos+night_start, worldmap_ypos, get_image_width(GR_WORLDMAP)-night_start, get_image_height(GR_WORLDMAP), 0, 0, 0, 150); } else { rectangle_alpha(worldmap_xpos+night_start, worldmap_ypos, night_end-night_start, get_image_height(GR_WORLDMAP), 0, 0, 0, 150); } -- 2.11.4.GIT