|
@@ -1114,37 +1114,37 @@ static int32 CheckInterval(int32 p1)
|
|
|
(IS_INT_INSIDE(ptc->servint_aircraft, 30, 800+1) || ptc->servint_aircraft == 0) &&
|
|
|
(IS_INT_INSIDE(ptc->servint_ships, 30, 800+1) || ptc->servint_ships == 0) );
|
|
|
}
|
|
|
|
|
|
if (!warning)
|
|
|
ShowErrorMessage(INVALID_STRING_ID, STR_CONFIG_PATCHES_SERVICE_INTERVAL_INCOMPATIBLE, 0, 0);
|
|
|
|
|
|
return InValidateDetailsWindow(0);
|
|
|
}
|
|
|
|
|
|
static int32 EngineRenewUpdate(int32 p1)
|
|
|
{
|
|
|
DoCommandP(0, 0, _patches.autorenew, NULL, CMD_REPLACE_VEHICLE);
|
|
|
DoCommandP(0, 0, _patches.autorenew, NULL, CMD_SET_AUTOREPLACE);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
static int32 EngineRenewMonthsUpdate(int32 p1)
|
|
|
{
|
|
|
DoCommandP(0, 1, _patches.autorenew_months, NULL, CMD_REPLACE_VEHICLE);
|
|
|
DoCommandP(0, 1, _patches.autorenew_months, NULL, CMD_SET_AUTOREPLACE);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
static int32 EngineRenewMoneyUpdate(int32 p1)
|
|
|
{
|
|
|
DoCommandP(0, 2, _patches.autorenew_money, NULL, CMD_REPLACE_VEHICLE);
|
|
|
DoCommandP(0, 2, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
|
|
|
return 0;
|
|
|
}
|
|
|
/* End - Callback Functions */
|
|
|
|
|
|
#ifndef EXTERNAL_PLAYER
|
|
|
#define EXTERNAL_PLAYER "timidity"
|
|
|
#endif
|
|
|
|
|
|
static const SettingDesc _music_settings[] = {
|
|
|
SDT_VAR(MusicFileSettings, playlist, SLE_UINT8, S, 0, 0, 0, 5, 1, STR_NULL, NULL),
|
|
|
SDT_VAR(MusicFileSettings, music_vol, SLE_UINT8, S, 0, 128, 0, 100, 1, STR_NULL, NULL),
|
|
|
SDT_VAR(MusicFileSettings, effect_vol, SLE_UINT8, S, 0, 128, 0, 100, 1, STR_NULL, NULL),
|