mirror of
https://github.com/CTurt/dsgmLib.git
synced 2025-06-18 22:55:33 -04:00
Fix random generator
This commit is contained in:
parent
5eaef046a9
commit
a1d2722256
BIN
lib/libdsgm.a
BIN
lib/libdsgm.a
Binary file not shown.
@ -104,7 +104,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)) + min;
|
||||
return (rand() % (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
void DSGM_Delay(unsigned int time) {
|
||||
|
Loading…
Reference in New Issue
Block a user