Moved the coordinate overflow fix setting to config.h

This commit is contained in:
Reonu
2021-05-26 15:28:06 +01:00
parent 9d2ec5d911
commit 953451ba7c
3 changed files with 18 additions and 7 deletions

View File

@@ -60,4 +60,19 @@
// Uncomment this if you want to keep the mario head and not skip it
//#define KEEP_MARIO_HEAD
/* Coordinate overflow fix setting:
* Scales the world down by this factor, increasing how far you can render on
* console in exchange for a slight loss in precision.
*
* For double extended boundary hacks, a value of 1.5f or 2.0f is good.
* For quadruple extended bounds, use 3.f or 4.f
*
* In a nutshell:
* - If you're not using extbounds, set this to 1.f.
* - If you're using 2x bounds, set this to 2.f
* - If you're using 4x bounds, use a value between 3.f and 4.f, depending on whether you're filling up the entire 4x bounds or not.
* If you want to change the extended bounds mode, go to src/engine/extended_bounds.h
*/
#define WORLD_SCALE 2.f
#endif // CONFIG_H

View File

@@ -7,6 +7,8 @@
#include "trig_tables.inc.c"
#include "config.h"
// Variables for a spline curve animation (used for the flight path in the grand star cutscene)
Vec4s *gSplineKeyframe;
float gSplineKeyframeFraction;

View File

@@ -5,13 +5,7 @@
#include "types.h"
/* Scales the world down by this factor, increasing how far you can render on
* console in exchange for a slight loss in precision.
*
* For double extended boundary hacks, a value of 1.5f or 2.0f is good.
* For quadruple extended bounds, use 3.f or 4.f
*/
#define WORLD_SCALE 2.f
/*
* The sine and cosine tables overlap, but "#define gCosineTable (gSineTable +