Fix typo in ResetEffectiveActionCounter
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -15,7 +15,7 @@ up<Game> _game = nullptr;
|
||||
|
||||
void ResetGame() {
|
||||
_game = make_up<Game>();
|
||||
ResetEffectivveActionCounter();
|
||||
ResetEffectiveActionCounter();
|
||||
}
|
||||
|
||||
void SwitchToMode(SwitchMode new_mode) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user