mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 15:03:01 +00:00
Make gControllers respect MAX_PLAYERS
fixes Linux crash when MAX_PLAYERS is increased
This commit is contained in:
parent
130cfefa82
commit
a5a4c3c324
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
// FIXME: I'm not sure all of these variables belong in this file, but I don't
|
// FIXME: I'm not sure all of these variables belong in this file, but I don't
|
||||||
// know of a good way to split them
|
// know of a good way to split them
|
||||||
struct Controller gControllers[3];
|
struct Controller gControllers[MAX_PLAYERS];
|
||||||
struct SPTask *gGfxSPTask;
|
struct SPTask *gGfxSPTask;
|
||||||
Gfx *gDisplayListHead;
|
Gfx *gDisplayListHead;
|
||||||
u8 *gGfxPoolEnd;
|
u8 *gGfxPoolEnd;
|
||||||
|
|
|
@ -22,7 +22,7 @@ struct DemoInput
|
||||||
u8 buttonMask;
|
u8 buttonMask;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct Controller gControllers[3];
|
extern struct Controller gControllers[MAX_PLAYERS];
|
||||||
extern OSContStatus gControllerStatuses[4];
|
extern OSContStatus gControllerStatuses[4];
|
||||||
extern OSContPad gControllerPads[4];
|
extern OSContPad gControllerPads[4];
|
||||||
extern OSMesgQueue gGameVblankQueue;
|
extern OSMesgQueue gGameVblankQueue;
|
||||||
|
|
Loading…
Reference in a new issue