mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
- getDate function now uses enum for different modes
- Fixed Black Market (#1195) - Fixed one-week bonuses removed eveyr day (#976)
This commit is contained in:
@ -1126,9 +1126,9 @@ void CGameHandler::newTurn()
|
||||
n.creatureid = -1;
|
||||
n.day = gs->day + 1;
|
||||
|
||||
bool firstTurn = !getDate(0);
|
||||
bool newWeek = getDate(1) == 7; //day numbers are confusing, as day was not yet switched
|
||||
bool newMonth = getDate(4) == 28;
|
||||
bool firstTurn = !getDate(Date::DAY);
|
||||
bool newWeek = getDate(Date::DAY_OF_WEEK) == 7; //day numbers are confusing, as day was not yet switched
|
||||
bool newMonth = getDate(Date::DAY_OF_MONTH) == 28;
|
||||
|
||||
std::map<ui8, si32> hadGold;//starting gold - for buildings like dwarven treasury
|
||||
srand(time(NULL));
|
||||
|
Reference in New Issue
Block a user