Remove costly recalculation of a date format we already have.
(cherry picked from commit 6aca18d18252f1c2f6d4a215999b7d7afb7df813) See #36
This commit is contained in:

committed by
Jonathan G Rennison

parent
9ab2b8fa3e
commit
4955996b35
@@ -1324,9 +1324,7 @@ DEF_CONSOLE_CMD(ConGetDate)
|
||||
return true;
|
||||
}
|
||||
|
||||
YearMonthDay ymd;
|
||||
ConvertDateToYMD(_date, &ymd);
|
||||
IConsolePrintF(CC_DEFAULT, "Date: %d-%d-%d", ymd.day, ymd.month + 1, ymd.year);
|
||||
IConsolePrintF(CC_DEFAULT, "Date: %d-%d-%d", _cur_date_ymd.day, _cur_date_ymd.month + 1, _cur_date_ymd.year);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user