diff 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
line wrap: on
line diff
--- a/libmlk-adventure/adventure/state/splashscreen.c	Wed Mar 10 18:49:00 2021 +0100
+++ b/libmlk-adventure/adventure/state/splashscreen.c	Wed Mar 10 18:49:08 2021 +0100
@@ -54,7 +54,7 @@
 	struct self *self = state->data;
 	struct font font;
 
-	if (!font_open(&font, molko_path("fonts/cubic.ttf"), 80))
+	if (font_open(&font, molko_path("fonts/cubic.ttf"), 80) < 0)
 		panic();
 
 	font.style = FONT_STYLE_ANTIALIASED;
@@ -75,7 +75,7 @@
 	self->elapsed += ticks;
 
 	if (self->elapsed >= DELAY)
-		game_switch(state_mainmenu_new(), false);
+		game_switch(state_mainmenu_new(), 0);
 }
 
 static void