Zoning: Cache expensive zoning overlay values

This commit is contained in:
Jonathan G Rennison
2018-01-22 17:49:53 +00:00
parent f8193578c1
commit 38fb8c1b84
6 changed files with 110 additions and 14 deletions

View File

@@ -36,6 +36,7 @@
#include "game/game.hpp"
#include "goal_base.h"
#include "story_base.h"
#include "zoning.h"
#include "table/strings.h"
@@ -119,6 +120,7 @@ void SetLocalCompany(CompanyID new_company)
/* ... and redraw the whole screen. */
MarkWholeScreenDirty();
InvalidateWindowClassesData(WC_SIGN_LIST, -1);
ClearZoningCaches();
}
/**