Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
CompareFloats.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
API_CALLABLE(N(
CompareFloats
)) {
4
Bytecode
* args =
script
->ptrReadPos;
5
f32
temp_f20
=
evt_get_float_variable
(
script
, *args++);
6
f32
temp
=
evt_get_float_variable
(
script
, *args++);
7
8
if
(
temp
<
temp_f20
) {
9
evt_set_variable
(
script
, *args++,
TRUE
);
10
}
else
{
11
evt_set_variable
(
script
, *args++,
FALSE
);
12
}
13
return
ApiStatus_DONE2
;
14
}
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
evt_set_variable
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition
evt.c:1846
evt_get_float_variable
f32 evt_get_float_variable(Evt *script, Bytecode var)
Definition
evt.c:1929
src
common
CompareFloats.inc.c
Generated by
1.10.0