Modern fixes (#697)

This commit is contained in:
Jaizu
2025-06-11 20:27:42 +02:00
committed by GitHub
parent f60d28ceb5
commit 507f1d8d36
12 changed files with 85 additions and 18 deletions
+4
View File
@@ -954,7 +954,11 @@ void ClearRematchStateByTrainerId(void)
TryGetObjectEventIdByLocalIdAndMap(objectEventTemplates[i].localId, gSaveBlock1Ptr->location.mapNum, gSaveBlock1Ptr->location.mapGroup, &objEventId);
objectEvent = &gObjectEvents[objEventId];
#if __STDC_VERSION__ < 202311L
GetRandomFaceDirectionMovementType(&objectEventTemplates[i]); // You are using this function incorrectly. Please consult the manual.
#else
GetRandomFaceDirectionMovementType();
#endif
OverrideMovementTypeForObjectEvent(objectEvent, sFaceDirectionMovementTypeByFacingDirection[objectEvent->facingDirection]);
gSaveBlock1Ptr->trainerRematches[objectEventTemplates[i].localId] = 0;
if (gSelectedObjectEvent == objEventId)