mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 11:29:10 +00:00
(svn r20897) -Codechange: Store the result of IsProductionAlterable() in a member variable of IndustryViewWindow.
This commit is contained in:
@@ -66,8 +66,9 @@ static int32 ClickChangeCompanyCheat(int32 p1, int32 p2)
|
||||
*/
|
||||
static int32 ClickSetProdCheat(int32 p1, int32 p2)
|
||||
{
|
||||
SetWindowClassesDirty(WC_INDUSTRY_VIEW);
|
||||
return p1;
|
||||
_cheats.setup_prod.value = p1;
|
||||
InvalidateWindowClassesData(WC_INDUSTRY_VIEW);
|
||||
return _cheats.setup_prod.value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user