diff librpg/rpg/map.c @ 168:aab824406d3d

misc: all printf-like function are name foof and vfoof
author David Demelier <markand@malikania.fr>
date Tue, 20 Oct 2020 15:09:39 +0200
parents c577c15df07f
children eb0a7ab71023
line wrap: on
line diff
--- a/librpg/rpg/map.c	Tue Oct 20 14:58:51 2020 +0200
+++ b/librpg/rpg/map.c	Tue Oct 20 15:09:39 2020 +0200
@@ -92,13 +92,13 @@
 check(struct map_data *data)
 {
 	if (strlen(data->title) == 0)
-		return error_printf("data has no title");
+		return errorf("data has no title");
 	if (data->w == 0 || data->h == 0)
-		return error_printf("data has null sizes");
+		return errorf("data has null sizes");
 	if (data->tile_w == 0 || data->tile_h == 0)
-		return error_printf("data has null tile sizes");
+		return errorf("data has null tile sizes");
 	if (!data->layers[0].tiles || !data->layers[1].tiles)
-		return error_printf("could not allocate data");
+		return errorf("could not allocate data");
 
 	return true;
 }