mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-06 19:11:21 -04:00
Fix JUT_ASSERT and several other macros (#2711)
* Fix JUT_ASSERT to be a nested define * Switch names that appear in asserts to be constants instead of defines * Replace `0` in asserts with `NULL` or `FALSE` * Fix fpclassify * Fix ARRAY_SIZE * Use G_CM3D_F_INF * More fixes for fpclassify * Remove FLOAT_LABEL * Remove incorrect FLAG_ON macro * Remove UNK_BSS macro * Silence clangd unused header warning for PCH
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Weather Effects
|
||||
*/
|
||||
|
||||
#include "d/dolzel.h"
|
||||
#include "d/dolzel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/d_kankyo_wether.h"
|
||||
#include "JSystem/J3DGraphBase/J3DDrawBuffer.h"
|
||||
@@ -563,7 +563,7 @@ static void wether_move_sun() {
|
||||
(u8*)dComIfG_getObjectRes("Always", 0x57);
|
||||
g_env_light.mpSunLenzPacket->mpResLenz =
|
||||
(u8*)dComIfG_getObjectRes("Always", 0x5C);
|
||||
g_env_light.mpSunLenzPacket->field_0x8c = 1e9f;
|
||||
g_env_light.mpSunLenzPacket->field_0x8c = 1000000000.0f; // This is not G_CM3D_F_INF
|
||||
g_env_light.mpSunLenzPacket->field_0x90 = 0.0f;
|
||||
g_env_light.mpSunLenzPacket->mDistFalloff = 0.0f;
|
||||
g_env_light.mpSunLenzPacket->mDrawLenzInSky = false;
|
||||
|
||||
Reference in New Issue
Block a user