correction des limites de la carte

This commit is contained in:
Jean-Paul NOEL 2020-04-19 14:53:00 +02:00
parent c9c5fce73a
commit 7d06c8806a
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ int main(void)
y++;
if (y > yMap)
{
y = yMap;
y = yMap-1;
}
break;
case KEY_LEFT:
@ -123,7 +123,7 @@ int main(void)
x++;
if (x > xMap)
{
x = xMap;
x = xMap-1;
}
break;
break;