mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
(svn r11594) -Fix: don't allow changing network only patches settings from console when not in network game
This commit is contained in:
parent
af4d07b978
commit
04f0700357
@ -1806,6 +1806,7 @@ CommandCost CmdChangePatchSetting(TileIndex tile, uint32 flags, uint32 p1, uint3
|
|||||||
if (sd == NULL) return CMD_ERROR;
|
if (sd == NULL) return CMD_ERROR;
|
||||||
if (!SlIsObjectCurrentlyValid(sd->save.version_from, sd->save.version_to)) return CMD_ERROR;
|
if (!SlIsObjectCurrentlyValid(sd->save.version_from, sd->save.version_to)) return CMD_ERROR;
|
||||||
|
|
||||||
|
if ((sd->desc.flags & SGF_NETWORK_ONLY) && !_networking) return CMD_ERROR;
|
||||||
if ((sd->desc.flags & SGF_NO_NETWORK) && _networking) return CMD_ERROR;
|
if ((sd->desc.flags & SGF_NO_NETWORK) && _networking) return CMD_ERROR;
|
||||||
|
|
||||||
if (flags & DC_EXEC) {
|
if (flags & DC_EXEC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user