Mercurial > molko
comparison 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 |
comparison
equal
deleted
inserted
replaced
167:b9b826cd9832 | 168:aab824406d3d |
---|---|
90 | 90 |
91 static bool | 91 static bool |
92 check(struct map_data *data) | 92 check(struct map_data *data) |
93 { | 93 { |
94 if (strlen(data->title) == 0) | 94 if (strlen(data->title) == 0) |
95 return error_printf("data has no title"); | 95 return errorf("data has no title"); |
96 if (data->w == 0 || data->h == 0) | 96 if (data->w == 0 || data->h == 0) |
97 return error_printf("data has null sizes"); | 97 return errorf("data has null sizes"); |
98 if (data->tile_w == 0 || data->tile_h == 0) | 98 if (data->tile_w == 0 || data->tile_h == 0) |
99 return error_printf("data has null tile sizes"); | 99 return errorf("data has null tile sizes"); |
100 if (!data->layers[0].tiles || !data->layers[1].tiles) | 100 if (!data->layers[0].tiles || !data->layers[1].tiles) |
101 return error_printf("could not allocate data"); | 101 return errorf("could not allocate data"); |
102 | 102 |
103 return true; | 103 return true; |
104 } | 104 } |
105 | 105 |
106 static void | 106 static void |