(svn r15334) -Codechange: reset setting to old value when the callback procedure returns false

This commit is contained in:
smatz
2009-02-04 15:01:37 +00:00
parent 3cf7255c4f
commit 496b541cb1
6 changed files with 79 additions and 79 deletions

View File

@@ -479,7 +479,7 @@ void DrawCatenary(const TileInfo *ti)
DrawCatenaryRailway(ti);
}
int32 SettingsDisableElrail(int32 p1)
bool SettingsDisableElrail(int32 p1)
{
Vehicle *v;
Company *c;
@@ -529,5 +529,5 @@ int32 SettingsDisableElrail(int32 p1)
* rails. It may have unintended consequences if that function is ever
* extended, though. */
ReinitGuiAfterToggleElrail(disable);
return 0;
return true;
}