Fix typo in ResetEffectiveActionCounter

This commit is contained in:
dP
2022-08-24 18:25:40 +03:00
parent 243b617aa4
commit 9e839320a6
4 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ void CountEffectiveAction() {
_last_actions.push(now + EPM_PERIOD);
}
void ResetEffectivveActionCounter() {
void ResetEffectiveActionCounter() {
_first_effective_tick = {};
_effective_actions = 0;
std::queue<std::chrono::steady_clock::time_point>().swap(_last_actions); // clear the queue

View File

@@ -27,7 +27,7 @@ void RoadToolbar_UpdateOptionWidgetStatus(Window *w, int widget, bool remove_act
bool RoadToolbar_RemoveModChanged(Window *w, bool remove_active, bool button_clicked, bool is_road);
void CountEffectiveAction();
void ResetEffectivveActionCounter();
void ResetEffectiveActionCounter();
std::pair<uint32, uint32> GetEPM();
} // namespace citymania

View File

@@ -15,7 +15,7 @@ up<Game> _game = nullptr;
void ResetGame() {
_game = make_up<Game>();
ResetEffectivveActionCounter();
ResetEffectiveActionCounter();
}
void SwitchToMode(SwitchMode new_mode) {

View File

@@ -124,7 +124,7 @@ void SetLocalCompany(CompanyID new_company)
/* Delete any construction windows... */
if (switching_company) CloseConstructionWindows();
if (switching_company) citymania::ResetEffectivveActionCounter();
if (switching_company) citymania::ResetEffectiveActionCounter();
/* ... and redraw the whole screen. */
MarkWholeScreenDirty();