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);
|
_ = SDL.SDL_RenderClear(renderer);
|
||||||
|
|
||||||
current_state = switch (current_state) {
|
current_state = switch (current_state) {
|
||||||
State.main_menu => main_menu.tick(),
|
.main_menu => main_menu.tick(),
|
||||||
State.game => game.tick(),
|
.game => game.tick(),
|
||||||
};
|
};
|
||||||
|
|
||||||
SDL.SDL_RenderPresent(renderer);
|
SDL.SDL_RenderPresent(renderer);
|
||||||
|
|
Loading…
Reference in New Issue