Finally... 12 new map patches!

This commit is contained in:
GenericHeroGuy 2025-11-18 21:05:50 +01:00
parent b4a2215711
commit 7272b8ee85
3 changed files with 13 additions and 5 deletions

View file

@ -94,8 +94,8 @@
#define ASSET_HASH_TEXTURES_KART 0xb4211b2f32b6a291
#define ASSET_HASH_CHARS_KART 0x1e68a3e01aa5c68b
#define ASSET_HASH_MAPS_KART 0x38558ed00da41ce9
#define ASSET_HASH_MAIN_PK3 0x9dc33fb314952e03
#define ASSET_HASH_MAPPATCH_PK3 0xd4d4ce4a090d5473
#define ASSET_HASH_MAIN_PK3 0x021bf74ef5de927b
#define ASSET_HASH_MAPPATCH_PK3 0x19b986363df7921a
#define ASSET_HASH_BONUSCHARS_KART 0x60e6f13d822a7461
#ifdef USE_PATCH_FILE
#define ASSET_HASH_PATCH_PK3 0x0000000000000000

View file

@ -955,13 +955,15 @@ const char *blancredits[] = {
"\"scizor300\"",
"",
"\1Map Patches",
"\"Sonic1983\" (PB)",
"\"SinosTH\" (PB)",
"\"Sonic1983\" (Playerbots)",
"\"SinosTH\" (Playerbots)",
"\"Frank_th\"",
"\"GenericHeroGuy\"",
"\"NepDisk\"",
"\"Mayo\"",
"\"ArcadeStriker\"",
"\"Lugent\"",
"\"WumboSpasm\"",
"",
// Anyone who's been directly involved with getting rid of SIGSEGV
// culprits gets credited here.

View file

@ -2106,9 +2106,15 @@ static UINT32 K_SetupCircuitLength(void)
{
waypoint_t *wp = &waypointheap[i];
path_t bestcircuitpath = {0};
K_PathfindToWaypoint(wp, finishline, &bestcircuitpath, false, false);
if (K_GetWaypointIsEnabled(wp) && wp != finishline && bestcircuitpath.totaldist == 0)
if (bestcircuitpath.totaldist == 0) // try again using shortcuts
K_PathfindToWaypoint(wp, finishline, &bestcircuitpath, true, false);
if (bestcircuitpath.totaldist == 0 && wp != finishline && K_GetWaypointIsEnabled(wp)
&& !(wp->numprevwaypoints > 0 && wp->prevwaypoints[0] == finishline)) // exception for sprint maps
CONS_Alert(CONS_WARNING, "Waypoint %d is a dead end\n", K_GetWaypointID(wp));
wp->distancetofinish = bestcircuitpath.totaldist;
Z_Free(bestcircuitpath.array);
}