(svn r24692) -Cleanup: Cleanup final parts of the old resolver code.

This commit is contained in:
alberth
2012-11-10 20:45:59 +00:00
parent 7b18c31f37
commit 8a297ca5f1
23 changed files with 96 additions and 229 deletions

View File

@@ -18,10 +18,7 @@
/* Currently there is no direct town resolver; we only need to get town
* variable results from inside stations, house tiles and industries,
* and to check the town's persistent storage.
* XXX Remove the functions. */
uint32 TownGetVariable(byte variable, uint32 parameter, bool *available, Town *t, const struct GRFFile *caller_grffile);
void TownStorePSA(Town *t, const struct GRFFile *caller_grffile, uint pos, int32 value);
*/
struct TownScopeResolver : public ScopeResolver {
Town *t;
bool readonly;
@@ -41,7 +38,7 @@ struct TownResolverObject : public ResolverObject {
{
switch (scope) {
case VSG_SCOPE_SELF: return &town_scope;
default: return &this->default_scope; // XXX return ResolverObject::GetScope(scope, relative);
default: return ResolverObject::GetScope(scope, relative);
}
}
};