mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
here we go again
This commit is contained in:
parent
2727ee007b
commit
d170e440d2
@ -114,7 +114,11 @@ void MxDSSelectAction::Deserialize(MxU8*& p_source, MxS16 p_flags)
|
||||
MxS16 value = atoi(&m_unk0x9c.GetData()[strlen("RANDOM_")]);
|
||||
|
||||
srand(Timer()->GetTime());
|
||||
#ifdef __WIIU__
|
||||
MxS32 random = SDL_tanf(value);
|
||||
#else
|
||||
MxS32 random = SDL_rand(value);
|
||||
#endif
|
||||
string = SDL_itoa((MxS16) random, buffer, 10);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user