From 825bf1a499b09ce46c8d76f1596db5a6e09aa75a Mon Sep 17 00:00:00 2001 From: Strangedusk Date: Thu, 14 Jul 2022 15:23:13 +0200 Subject: [PATCH] Make use of zig switch syntax --- src/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 2b443c2..7a1cdd6 100644 --- a/src/main.zig +++ b/src/main.zig @@ -49,8 +49,8 @@ pub fn main() !void { _ = SDL.SDL_RenderClear(renderer); current_state = switch (current_state) { - State.main_menu => main_menu.tick(), - State.game => game.tick(), + .main_menu => main_menu.tick(), + .game => game.tick(), }; SDL.SDL_RenderPresent(renderer);