Skip to content

Commit

Permalink
Do not set date when re-initializing world map
Browse files Browse the repository at this point in the history
Fixes #153
  • Loading branch information
Hammie committed Nov 26, 2023
1 parent f8ab0e2 commit 58ed92d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions PROGRAM/WorldMap/worldmap_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ void wdmInitWorldMap()

wdmReinit();

//Start date
worldMap.date.hour = CharHour;
worldMap.date.min = CharMinute;
worldMap.date.sec = CharSecond;
worldMap.date.day = CharDay;
worldMap.date.month = CharMonth;
worldMap.date.year = CharYear;
worldMap.date.hourPerSec = 1.5;

//=========================================================================
//Labels
//=========================================================================
Expand Down Expand Up @@ -829,15 +838,6 @@ void wdmReinit() {
worldMap.evwin = "false";
worldMap.noenc = "false";

//Start date
worldMap.date.hour = CharHour;
worldMap.date.min = CharMinute;
worldMap.date.sec = CharSecond;
worldMap.date.day = CharDay;
worldMap.date.month = CharMonth;
worldMap.date.year = CharYear;
worldMap.date.hourPerSec = 1.5;

worldMap.foodText.scale = 1.0;
worldMap.foodText.font = "normal";
worldMap.foodText.pos.x = stf(showWindow.right) - 104.0;
Expand Down

0 comments on commit 58ed92d

Please sign in to comment.