mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r26656) -Fix [FS#6044]: Production cheat cannot not be allowed to be active in multiplayer for desync reasons, even when activated in singleplayer previously
This commit is contained in:
parent
a1e2372da9
commit
73bfec0fc8
@ -24,6 +24,7 @@
|
|||||||
#include "newgrf_industries.h"
|
#include "newgrf_industries.h"
|
||||||
#include "newgrf_text.h"
|
#include "newgrf_text.h"
|
||||||
#include "newgrf_debug.h"
|
#include "newgrf_debug.h"
|
||||||
|
#include "network/network.h"
|
||||||
#include "strings_func.h"
|
#include "strings_func.h"
|
||||||
#include "company_func.h"
|
#include "company_func.h"
|
||||||
#include "tilehighlight_func.h"
|
#include "tilehighlight_func.h"
|
||||||
@ -639,7 +640,8 @@ static inline bool IsProductionAlterable(const Industry *i)
|
|||||||
{
|
{
|
||||||
const IndustrySpec *is = GetIndustrySpec(i->type);
|
const IndustrySpec *is = GetIndustrySpec(i->type);
|
||||||
return ((_game_mode == GM_EDITOR || _cheats.setup_prod.value) &&
|
return ((_game_mode == GM_EDITOR || _cheats.setup_prod.value) &&
|
||||||
(is->production_rate[0] != 0 || is->production_rate[1] != 0 || is->IsRawIndustry()));
|
(is->production_rate[0] != 0 || is->production_rate[1] != 0 || is->IsRawIndustry()) &&
|
||||||
|
!_networking);
|
||||||
}
|
}
|
||||||
|
|
||||||
class IndustryViewWindow : public Window
|
class IndustryViewWindow : public Window
|
||||||
|
Loading…
Reference in New Issue
Block a user