#include <string.h> /* for strlen(), strcmp() */
#include "yx_uint16.h" /* for yx_uint16 struct, mv_yx_in_dir(),
* yx_uint16_cmp()
#include <string.h> /* for strlen(), strcmp() */
#include "yx_uint16.h" /* for yx_uint16 struct, mv_yx_in_dir(),
* yx_uint16_cmp()
char * path = "config/map_object_actions";
FILE * file = try_fopen(path, "r", f_name);
uint16_t linemax = textfile_sizes(file, NULL);
char line[linemax + 1];
char * path = "config/map_object_actions";
FILE * file = try_fopen(path, "r", f_name);
uint16_t linemax = textfile_sizes(file, NULL);
char line[linemax + 1];
struct MapObjAct ** moa_ptr_ptr = &world.map_obj_acts;
char * delim = " ";
while (fgets(line, linemax + 1, file))
struct MapObjAct ** moa_ptr_ptr = &world.map_obj_acts;
char * delim = " ";
while (fgets(line, linemax + 1, file))
- for (i = 0, selected = mo->owns;
- i != select;
- i++, selected = selected->next);
+ selected = mo->owns;
+ for (i = 0; i != select; i++, selected = selected->next);