mirror of
https://github.com/CTurt/dsgmLib.git
synced 2025-06-19 15:15:31 -04:00
Random function fix
This commit is contained in:
parent
d97a43d8e8
commit
701232d410
@ -98,7 +98,7 @@ inline u16 DSGM_GetAngle(s32 startx, s32 starty, s32 targetx, s32 targety) {
|
||||
}
|
||||
|
||||
inline int DSGM_Random(int min, int max) {
|
||||
return (rand() % max) + min;
|
||||
return (rand() % (max - min)) + min;
|
||||
}
|
||||
|
||||
void DSGM_Delay(unsigned int time) {
|
||||
|
Loading…
Reference in New Issue
Block a user