comparison libmlk-adventure/adventure/state/splashscreen.c @ 298:196264679079

misc: remove usage of bool
author David Demelier <markand@malikania.fr>
date Wed, 10 Mar 2021 18:49:08 +0100
parents a15f77eda9a4
children 648f5f949afb
comparison
equal deleted inserted replaced
297:6151152d009c 298:196264679079
52 start(struct state *state) 52 start(struct state *state)
53 { 53 {
54 struct self *self = state->data; 54 struct self *self = state->data;
55 struct font font; 55 struct font font;
56 56
57 if (!font_open(&font, molko_path("fonts/cubic.ttf"), 80)) 57 if (font_open(&font, molko_path("fonts/cubic.ttf"), 80) < 0)
58 panic(); 58 panic();
59 59
60 font.style = FONT_STYLE_ANTIALIASED; 60 font.style = FONT_STYLE_ANTIALIASED;
61 61
62 if (!font_render(&font, &self->tex, "malikania", 0x19332dff)) 62 if (!font_render(&font, &self->tex, "malikania", 0x19332dff))
73 struct self *self = state->data; 73 struct self *self = state->data;
74 74
75 self->elapsed += ticks; 75 self->elapsed += ticks;
76 76
77 if (self->elapsed >= DELAY) 77 if (self->elapsed >= DELAY)
78 game_switch(state_mainmenu_new(), false); 78 game_switch(state_mainmenu_new(), 0);
79 } 79 }
80 80
81 static void 81 static void
82 draw(struct state *state) 82 draw(struct state *state)
83 { 83 {