mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-29 03:23:44 +00:00
fix(Car.java): pos %= loop
This commit is contained in:
@@ -73,7 +73,7 @@ public class Car
|
|||||||
if (pos >= loop)
|
if (pos >= loop)
|
||||||
{
|
{
|
||||||
round++;
|
round++;
|
||||||
pos = 0;
|
pos %= loop;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user