mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
Cleanup: use true/false instead of 1/0 where applicable
This commit is contained in:
parent
f904aef176
commit
357af686dc
@ -733,7 +733,7 @@ bool AfterLoadGame()
|
||||
if (IsSavegameVersionBefore(SLV_6, 1)) _settings_game.pf.forbid_90_deg = false;
|
||||
if (IsSavegameVersionBefore(SLV_21)) _settings_game.vehicle.train_acceleration_model = 0;
|
||||
if (IsSavegameVersionBefore(SLV_90)) _settings_game.vehicle.plane_speed = 4;
|
||||
if (IsSavegameVersionBefore(SLV_95)) _settings_game.vehicle.dynamic_engines = 0;
|
||||
if (IsSavegameVersionBefore(SLV_95)) _settings_game.vehicle.dynamic_engines = false;
|
||||
if (IsSavegameVersionBefore(SLV_96)) _settings_game.economy.station_noise_level = false;
|
||||
if (IsSavegameVersionBefore(SLV_133)) {
|
||||
_settings_game.vehicle.train_slope_steepness = 3;
|
||||
|
@ -65,7 +65,7 @@ static void Load_AIPL()
|
||||
while ((index = (CompanyID)SlIterateArray()) != (CompanyID)-1) {
|
||||
if (index >= MAX_COMPANIES) SlErrorCorrupt("Too many AI configs");
|
||||
|
||||
_ai_saveload_is_random = 0;
|
||||
_ai_saveload_is_random = false;
|
||||
_ai_saveload_version = -1;
|
||||
SlObject(nullptr, _ai_company);
|
||||
|
||||
|
@ -146,7 +146,7 @@ GetOGLProcAddressProc GetOGLProcAddress;
|
||||
*/
|
||||
const char *FindStringInExtensionList(const char *string, const char *substring)
|
||||
{
|
||||
while (1) {
|
||||
while (true) {
|
||||
/* Is the extension string present at all? */
|
||||
const char *pos = strstr(string, substring);
|
||||
if (pos == nullptr) break;
|
||||
|
Loading…
Reference in New Issue
Block a user