Add support for money cheat in multiplayer

Add a setting for whether this is permitted by multiplayer clients
This commit is contained in:
Jonathan G Rennison
2020-04-14 22:04:41 +01:00
parent b209b37db9
commit ab99c16601
11 changed files with 80 additions and 11 deletions

View File

@@ -1273,6 +1273,12 @@ static bool DifficultyNoiseChange(int32 i)
return true;
}
static bool DifficultyMoneyCheatMultiplayerChange(int32 i)
{
DeleteWindowById(WC_CHEATS, 0);
return true;
}
static bool MaxNoAIsChange(int32 i)
{
if (GetGameSettings().difficulty.max_no_competitors != 0 &&