mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r3874) - Codechange: move the extern decleration of _patches_newgame inside the WE_CREATE event because it is only used there.
This commit is contained in:
parent
54f5cf4ec9
commit
76a7d159db
@ -581,8 +581,6 @@ static const PatchPage _patches_page[] = {
|
|||||||
{_patches_ai, lengthof(_patches_ai)},
|
{_patches_ai, lengthof(_patches_ai)},
|
||||||
};
|
};
|
||||||
|
|
||||||
extern Patches _patches_newgame;
|
|
||||||
|
|
||||||
/** The main patches window. Shows a number of categories on top and
|
/** The main patches window. Shows a number of categories on top and
|
||||||
* a selection of patches in that category.
|
* a selection of patches in that category.
|
||||||
* Uses WP(w, def_d) macro - data_1, data_2, data_3 */
|
* Uses WP(w, def_d) macro - data_1, data_2, data_3 */
|
||||||
@ -591,9 +589,10 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e)
|
|||||||
static Patches *patches_ptr;
|
static Patches *patches_ptr;
|
||||||
|
|
||||||
switch (e->event) {
|
switch (e->event) {
|
||||||
case WE_CREATE:
|
case WE_CREATE: {
|
||||||
|
extern Patches _patches_newgame;
|
||||||
patches_ptr = (_game_mode == GM_MENU) ? &_patches_newgame : &_patches;
|
patches_ptr = (_game_mode == GM_MENU) ? &_patches_newgame : &_patches;
|
||||||
break;
|
} break;
|
||||||
|
|
||||||
case WE_PAINT: {
|
case WE_PAINT: {
|
||||||
int x, y;
|
int x, y;
|
||||||
|
Loading…
Reference in New Issue
Block a user