mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-10 07:36:51 +00:00
Use defines here instead
I got a "initializer element is not constant" error when compiling. From a quick Google search, it seems that const-type variables aren't totally considered constants in C. There may be a better way to fix this error.
This commit is contained in:
parent
0f7a704444
commit
bca4f30ee3
1 changed files with 3 additions and 3 deletions
|
|
@ -11,9 +11,9 @@ static const UINT32 SPARKLES_PER_CONNECTION = 16U;
|
|||
|
||||
// Some defaults for the size of the dynamically allocated sets for pathfinding. These are kept for the purpose of
|
||||
// allocating a size that is less likely to need reallocating again during the pathfinding.
|
||||
static const size_t OPENSET_BASE_SIZE = 16U;
|
||||
static const size_t CLOSEDSET_BASE_SIZE = 256U;
|
||||
static const size_t NODESARRAY_BASE_SIZE = 256U;
|
||||
#define OPENSET_BASE_SIZE 16U;
|
||||
#define CLOSEDSET_BASE_SIZE 256U;
|
||||
#define NODESARRAY_BASE_SIZE 256U;
|
||||
|
||||
static waypoint_t *waypointheap = NULL;
|
||||
static waypoint_t *firstwaypoint = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue