mirror of
https://github.com/pret/pokediamond.git
synced 2026-03-21 17:54:29 -05:00
move rand.h funcs to stdlib.h
This commit is contained in:
parent
d85eff3b75
commit
44153caeca
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
//include all msl files here
|
||||
|
||||
#include "rand.h"
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
#ifndef POKEDIAMOND_MSL_RAND_H
|
||||
#define POKEDIAMOND_MSL_RAND_H
|
||||
|
||||
int rand(void);
|
||||
void srand(unsigned int seed);
|
||||
|
||||
#endif // POKEDIAMOND_MSL_RAND_H
|
||||
|
|
@ -4,5 +4,7 @@
|
|||
// this file MUST be called stdlib.h, as the filename affects matching for some reason
|
||||
|
||||
int abs(int val);
|
||||
void srand(unsigned int seed);
|
||||
int rand(void);
|
||||
|
||||
#endif // POKEDIAMOND_MSL_C_STDLIB_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#include "rand.h"
|
||||
#include "code32.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
static unsigned long int random_next = 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@
|
|||
#include "party.h"
|
||||
#include "pokedex.h"
|
||||
#include "pokemon_storage_system.h"
|
||||
#include "sav_chatot.h"
|
||||
#include "save_vars_flags.h"
|
||||
#include "scrcmd.h"
|
||||
#include "sav_chatot.h"
|
||||
|
||||
extern void *FieldSysGetAttrAddr(FieldSystem *fieldSystem, u8 idx);
|
||||
extern SaveFashionData *Save_FashionData_Get(SaveData *save);
|
||||
|
|
@ -55,7 +55,6 @@ static BOOL sub_0203FEF4(ScriptContext *ctx);
|
|||
static BOOL sub_020401F0(ScriptContext *ctx);
|
||||
static BOOL sub_02040618(ScriptContext *ctx);
|
||||
|
||||
|
||||
BOOL ScrCmd_Unk00F8(ScriptContext *ctx) {
|
||||
void **miscDataPtr = FieldSysGetAttrAddr(ctx->fieldSystem, SCRIPTENV_MISC_DATA_PTR);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user