1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-10 19:20:13 +00:00

Replace VI_MODE_EDITOR_INACTIVE

This commit is contained in:
cadmic 2024-01-29 12:32:11 -08:00
parent 8a033cb723
commit f7c4cae7c3

View file

@ -1,12 +1,6 @@
#include "global.h"
#include "terminal.h"
#if OOT_DEBUG
#define VI_MODE_EDITOR_INACTIVE (R_VI_MODE_EDIT_STATE == VI_MODE_EDIT_STATE_INACTIVE)
#else
#define VI_MODE_EDITOR_INACTIVE true
#endif
SpeedMeter D_801664D0;
VisCvg sVisCvg;
VisZBuf sVisZBuf;
@ -442,7 +436,7 @@ void GameState_Init(GameState* gameState, GameStateFunc init, GraphicsContext* g
VisCvg_Init(&sVisCvg);
VisZBuf_Init(&sVisZBuf);
VisMono_Init(&sVisMono);
if (VI_MODE_EDITOR_INACTIVE) {
if (!OOT_DEBUG || (R_VI_MODE_EDIT_STATE == VI_MODE_EDIT_STATE_INACTIVE)) {
ViMode_Init(&sViMode);
}
SpeedMeter_Init(&D_801664D0);
@ -473,7 +467,7 @@ void GameState_Destroy(GameState* gameState) {
VisCvg_Destroy(&sVisCvg);
VisZBuf_Destroy(&sVisZBuf);
VisMono_Destroy(&sVisMono);
if (VI_MODE_EDITOR_INACTIVE) {
if (!OOT_DEBUG || (R_VI_MODE_EDIT_STATE == VI_MODE_EDIT_STATE_INACTIVE)) {
ViMode_Destroy(&sViMode);
}
THA_Destroy(&gameState->tha);