File diff r23496:661d21df67d7 → r23497:a0ab44ebd2fa
src/newgrf_town.h
Show inline comments
 
@@ -43,13 +43,13 @@ struct TownScopeResolver : public ScopeR
 
/** Resolver of town properties. */
 
struct TownResolverObject : public ResolverObject {
 
	TownScopeResolver town_scope; ///< Scope resolver specific for towns.
 

	
 
	TownResolverObject(const struct GRFFile *grffile, Town *t, bool readonly);
 

	
 
	/* virtual */ ScopeResolver *GetScope(VarSpriteGroupScope scope = VSG_SCOPE_SELF, byte relative = 0)
 
	ScopeResolver *GetScope(VarSpriteGroupScope scope = VSG_SCOPE_SELF, byte relative = 0) override
 
	{
 
		switch (scope) {
 
			case VSG_SCOPE_SELF: return &town_scope;
 
			default: return ResolverObject::GetScope(scope, relative);
 
		}
 
	}