Fix random generator

This commit is contained in:
CTurt 2015-04-19 10:27:54 +01:00
parent 5eaef046a9
commit a1d2722256
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -104,7 +104,7 @@ inline u16 DSGM_GetAngle(s32 startx, s32 starty, s32 targetx, s32 targety) {
} }
inline int DSGM_Random(int min, int max) { 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) { void DSGM_Delay(unsigned int time) {