summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-11-30 01:57:53 +0100
committerRay <[email protected]>2018-11-30 01:57:53 +0100
commit1774260dab789c00d31b9e17bb5eeab38f81be1c (patch)
treef9c8929aa22f29131a10c337651a3cada8713ee6 /src/core.c
parent874c0910e33a1762c06148f2b0ea58e107beb7de (diff)
downloadraylib-1774260dab789c00d31b9e17bb5eeab38f81be1c.tar.gz
raylib-1774260dab789c00d31b9e17bb5eeab38f81be1c.zip
Some tweaks
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index ff015894..0fa2f00d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1436,8 +1436,6 @@ Color GetColor(int hexValue)
return color;
}
-
-
// Returns a random value between min and max (both included)
int GetRandomValue(int min, int max)
{
@@ -1448,7 +1446,7 @@ int GetRandomValue(int min, int max)
min = tmp;
}
- return (rand()%(abs(max-min)+1) + min);
+ return (rand()%(abs(max - min) + 1) + min);
}
// Color fade-in or fade-out, alpha goes from 0.0f to 1.0f