mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
(svn r16182) -Fix: hardcoded (old sized) MAX_COMPANIES constant
This commit is contained in:
@@ -552,7 +552,7 @@ void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y)
|
|||||||
Point pt;
|
Point pt;
|
||||||
const ViewPort *vp;
|
const ViewPort *vp;
|
||||||
|
|
||||||
if (msg_1 != STR_ERROR_OWNED_BY || GetDParam(2) >= 8) {
|
if (msg_1 != STR_ERROR_OWNED_BY || GetDParam(2) >= MAX_COMPANIES) {
|
||||||
if ((x | y) != 0) {
|
if ((x | y) != 0) {
|
||||||
pt = RemapCoords2(x, y);
|
pt = RemapCoords2(x, y);
|
||||||
vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport;
|
vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport;
|
||||||
|
Reference in New Issue
Block a user