Tilemap: Fix map wrap around

This commit is contained in:
Jonas Kulla 2014-07-11 08:43:39 +02:00
parent d1bad9b45f
commit 91aefdc17a
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ static const size_t scanrowsMax = viewpH + 5;
*
*/
static int wrap(size_t value, size_t range)
static int wrap(int value, int range)
{
int res = value % range;
return res < 0 ? res + range : res;