mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-06 04:34:24 -04:00
48 lines
921 B
C
48 lines
921 B
C
#include <ultra64.h>
|
|
#include "constants.h"
|
|
#include "game/chraction.h"
|
|
#include "game/dlights.h"
|
|
#include "game/game_006900.h"
|
|
#include "game/nbomb.h"
|
|
#include "game/chr.h"
|
|
#include "game/chraction.h"
|
|
#include "game/prop.h"
|
|
#include "game/objectives.h"
|
|
#include "game/atan2f.h"
|
|
#include "game/game_0b3350.h"
|
|
#include "game/savebuffer.h"
|
|
#include "game/bg.h"
|
|
#include "game/file.h"
|
|
#include "game/gfxmemory.h"
|
|
#include "bss.h"
|
|
#include "lib/vi.h"
|
|
#include "lib/snd.h"
|
|
#include "lib/rng.h"
|
|
#include "lib/mtx.h"
|
|
#include "lib/lib_317f0.h"
|
|
#include "data.h"
|
|
#include "types.h"
|
|
|
|
#if VERSION >= VERSION_NTSC_1_0
|
|
// In ntsc-bta, this function is in a different file
|
|
f32 func0f006bd0(f32 arg0)
|
|
{
|
|
s32 ival = arg0 * 4.0f;
|
|
f32 fval = arg0 * 4.0f - (f32)(ival / 4) * 4.0f;
|
|
|
|
if (fval < 1.0f) {
|
|
return fval;
|
|
}
|
|
|
|
if (fval < 2.0f) {
|
|
return 1.0f;
|
|
}
|
|
|
|
if (fval < 3.0f) {
|
|
return 1.0f - (fval - 2.0f);
|
|
}
|
|
|
|
return 0.0f;
|
|
}
|
|
#endif
|