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