Make use of zig switch syntax
This commit is contained in:
parent
2c22dabeae
commit
825bf1a499
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue