diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game.zig b/src/game.zig index 40804b2..7f44856 100644 --- a/src/game.zig +++ b/src/game.zig @@ -33,12 +33,14 @@ pub const Game = struct { } pub fn reset(self: *Game, side: brothers.Side) void { self.side = side; + self.brothers[0].reset(.left); + self.brothers[1].reset(.right); self.resetRound(); } pub fn resetRound(self: *Game) void { self.ball.reset(.left); - self.brothers[0].reset(.left); - self.brothers[1].reset(.right); + self.brothers[0].resetRound(); + self.brothers[1].resetRound(); } pub fn step(self: *Game) void { self.ball.step(); |