mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
pedantic: replace GNU empty initializer extension with C99 0 initializer
This commit is contained in:
parent
59c04ae041
commit
286010c6e9
3 changed files with 9 additions and 9 deletions
|
|
@ -7657,7 +7657,7 @@ void K_UpdateDistanceFromFinishLine(player_t *const player)
|
||||||
const boolean useshortcuts = false;
|
const boolean useshortcuts = false;
|
||||||
const boolean huntbackwards = false;
|
const boolean huntbackwards = false;
|
||||||
boolean pathfindsuccess = false;
|
boolean pathfindsuccess = false;
|
||||||
path_t pathtofinish = {};
|
path_t pathtofinish = {0};
|
||||||
|
|
||||||
pathfindsuccess =
|
pathfindsuccess =
|
||||||
K_PathfindToWaypoint(player->nextwaypoint, finishline, &pathtofinish, useshortcuts, huntbackwards);
|
K_PathfindToWaypoint(player->nextwaypoint, finishline, &pathtofinish, useshortcuts, huntbackwards);
|
||||||
|
|
|
||||||
|
|
@ -298,7 +298,7 @@ boolean K_PathfindAStar(path_t *const path, pathfindsetup_t *const pathfindsetup
|
||||||
else if (pathfindsetup->startnodedata == pathfindsetup->endnodedata)
|
else if (pathfindsetup->startnodedata == pathfindsetup->endnodedata)
|
||||||
{
|
{
|
||||||
// At the destination, return a simple 1 node path
|
// At the destination, return a simple 1 node path
|
||||||
pathfindnode_t singlenode = {};
|
pathfindnode_t singlenode = {0};
|
||||||
singlenode.camefrom = NULL;
|
singlenode.camefrom = NULL;
|
||||||
singlenode.nodedata = pathfindsetup->endnodedata;
|
singlenode.nodedata = pathfindsetup->endnodedata;
|
||||||
singlenode.heapindex = SIZE_MAX;
|
singlenode.heapindex = SIZE_MAX;
|
||||||
|
|
@ -311,8 +311,8 @@ boolean K_PathfindAStar(path_t *const path, pathfindsetup_t *const pathfindsetup
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bheap_t openset = {};
|
bheap_t openset = {0};
|
||||||
bheapitem_t poppedbheapitem = {};
|
bheapitem_t poppedbheapitem = {0};
|
||||||
pathfindnode_t *nodesarray = NULL;
|
pathfindnode_t *nodesarray = NULL;
|
||||||
pathfindnode_t **closedset = NULL;
|
pathfindnode_t **closedset = NULL;
|
||||||
pathfindnode_t *newnode = NULL;
|
pathfindnode_t *newnode = NULL;
|
||||||
|
|
|
||||||
|
|
@ -302,7 +302,7 @@ static void K_CompareOverlappingWaypoint
|
||||||
const boolean useshortcuts = false;
|
const boolean useshortcuts = false;
|
||||||
const boolean huntbackwards = false;
|
const boolean huntbackwards = false;
|
||||||
boolean pathfindsuccess = false;
|
boolean pathfindsuccess = false;
|
||||||
path_t pathtofinish = {};
|
path_t pathtofinish = {0};
|
||||||
|
|
||||||
pathfindsuccess =
|
pathfindsuccess =
|
||||||
K_PathfindToWaypoint(checkwaypoint, finishline, &pathtofinish, useshortcuts, huntbackwards);
|
K_PathfindToWaypoint(checkwaypoint, finishline, &pathtofinish, useshortcuts, huntbackwards);
|
||||||
|
|
@ -1064,7 +1064,7 @@ boolean K_PathfindToWaypoint(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pathfindsetup_t pathfindsetup = {};
|
pathfindsetup_t pathfindsetup = {0};
|
||||||
getconnectednodesfunc nextnodesfunc = K_WaypointPathfindGetNext;
|
getconnectednodesfunc nextnodesfunc = K_WaypointPathfindGetNext;
|
||||||
getnodeconnectioncostsfunc nodecostsfunc = K_WaypointPathfindGetNextCosts;
|
getnodeconnectioncostsfunc nodecostsfunc = K_WaypointPathfindGetNextCosts;
|
||||||
getnodeheuristicfunc heuristicfunc = K_WaypointPathfindGetHeuristic;
|
getnodeheuristicfunc heuristicfunc = K_WaypointPathfindGetHeuristic;
|
||||||
|
|
@ -1158,8 +1158,8 @@ waypoint_t *K_GetNextWaypointToDestination(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
path_t pathtowaypoint = {};
|
path_t pathtowaypoint = {0};
|
||||||
pathfindsetup_t pathfindsetup = {};
|
pathfindsetup_t pathfindsetup = {0};
|
||||||
boolean pathfindsuccess = false;
|
boolean pathfindsuccess = false;
|
||||||
getconnectednodesfunc nextnodesfunc = K_WaypointPathfindGetNext;
|
getconnectednodesfunc nextnodesfunc = K_WaypointPathfindGetNext;
|
||||||
getnodeconnectioncostsfunc nodecostsfunc = K_WaypointPathfindGetNextCosts;
|
getnodeconnectioncostsfunc nodecostsfunc = K_WaypointPathfindGetNextCosts;
|
||||||
|
|
@ -1559,7 +1559,7 @@ static UINT32 K_SetupCircuitLength(void)
|
||||||
{
|
{
|
||||||
// Create a fake finishline waypoint, then try and pathfind to the finishline from it
|
// Create a fake finishline waypoint, then try and pathfind to the finishline from it
|
||||||
waypoint_t fakefinishline = *finishline;
|
waypoint_t fakefinishline = *finishline;
|
||||||
path_t bestcircuitpath = {};
|
path_t bestcircuitpath = {0};
|
||||||
const boolean useshortcuts = false;
|
const boolean useshortcuts = false;
|
||||||
const boolean huntbackwards = false;
|
const boolean huntbackwards = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue