turn on optimizations

This commit is contained in:
James Lambert 2023-10-01 20:16:05 -06:00
parent c9745a14a1
commit 7dc17db4a8
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ $(SKELATOOL64):
skelatool64/setup_dependencies.sh
make -C skelatool64
OPTIMIZER := -O0
OPTIMIZER := -Os
LCDEFS := -DDEBUG -g -Isrc/ -I/usr/include/n64/nustd -Werror -Wall
N64LIB := -lultra_rom -lnustd

View file

@ -107,8 +107,8 @@ u8 gPromptActions[] = {
char* gPromptText[] = {
NULL,
"TO PLACE THE BLUE PORTAL",
"TO PLACE THE ORANGE PORTAL",
"TO PLACE THE BLUE PORTAL",
"TO PICKUP AND OBJECT",
"TO DROP AND OBJECT",
"TO USE",

View file

@ -784,7 +784,7 @@ int portalSurfaceJoinInnerLoopToOuterLoop(struct PortalSurfaceBuilder* surfaceBu
int currentEdge = surfaceBuilder->cuttingEdge;
int nextEdge;
int closestEdge;
int closestEdge = currentEdge;
int closestDistance = 0x7FFFFFFF;
while ((nextEdge = portalSurfaceNextEdge(surfaceBuilder, currentEdge)), nextEdge != surfaceBuilder->cuttingEdge) {