mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r17215) -Cleanup: remove unused return value
This commit is contained in:
parent
67106dc063
commit
a8773bba2d
@ -202,10 +202,8 @@ static inline RailType UpdateRailType(RailType rt, RailType min)
|
|||||||
* the intialization of the windows and caches quite some bugs
|
* the intialization of the windows and caches quite some bugs
|
||||||
* had been made.
|
* had been made.
|
||||||
* Moving this out of there is both cleaner and less bug-prone.
|
* Moving this out of there is both cleaner and less bug-prone.
|
||||||
*
|
|
||||||
* @return true if everything went according to plan, otherwise false.
|
|
||||||
*/
|
*/
|
||||||
static bool InitializeWindowsAndCaches()
|
static void InitializeWindowsAndCaches()
|
||||||
{
|
{
|
||||||
/* Initialize windows */
|
/* Initialize windows */
|
||||||
ResetWindowSystem();
|
ResetWindowSystem();
|
||||||
@ -239,8 +237,6 @@ static bool InitializeWindowsAndCaches()
|
|||||||
UpdateAirportsNoise();
|
UpdateAirportsNoise();
|
||||||
|
|
||||||
CheckTrainsLengths();
|
CheckTrainsLengths();
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef void (CDECL *SignalHandlerPointer)(int);
|
typedef void (CDECL *SignalHandlerPointer)(int);
|
||||||
@ -1910,10 +1906,10 @@ bool AfterLoadGame()
|
|||||||
|
|
||||||
GamelogPrintDebug(1);
|
GamelogPrintDebug(1);
|
||||||
|
|
||||||
bool ret = InitializeWindowsAndCaches();
|
InitializeWindowsAndCaches();
|
||||||
/* Restore the signals */
|
/* Restore the signals */
|
||||||
ResetSignalHandlers();
|
ResetSignalHandlers();
|
||||||
return ret;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Reload all NewGRF files during a running game. This is a cut-down
|
/** Reload all NewGRF files during a running game. This is a cut-down
|
||||||
|
Loading…
Reference in New Issue
Block a user