mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-20 14:11:16 +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_")]);
|
MxS16 value = atoi(&m_unk0x9c.GetData()[strlen("RANDOM_")]);
|
||||||
|
|
||||||
srand(Timer()->GetTime());
|
srand(Timer()->GetTime());
|
||||||
|
#ifdef __WIIU__
|
||||||
|
MxS32 random = SDL_tanf(value);
|
||||||
|
#else
|
||||||
MxS32 random = SDL_rand(value);
|
MxS32 random = SDL_rand(value);
|
||||||
|
#endif
|
||||||
string = SDL_itoa((MxS16) random, buffer, 10);
|
string = SDL_itoa((MxS16) random, buffer, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user