- uint8_t id;
- static struct Thing * t = NULL;
- if (t && ( parse_thing_type(tok0, tok1, t)
- || parse_thing_command(tok0, tok1, t)
- || parse_val(tok0, tok1, s[S_CMD_ARGUMENT], '8', (char *)&t->arg)
- || parse_val(tok0,tok1,s[S_CMD_PROGRESS],'8',(char *)&t->progress)
- || parse_val(tok0, tok1, s[S_CMD_LIFEPOINTS], '8',
- (char *) &t->lifepoints)
- || parse_position(tok0, tok1, t)
- || parse_carry(tok0, tok1, t)));
- else if (parse_val(tok0, tok1, s[S_CMD_THING], '8', (char *) &id))
- {
- t = get_thing(world.things, id, 1);
- if (!t)
- {
- t = add_thing(id, 0, 0);
- set_cleanup_flag(CLEANUP_THINGS);
- t->fov_map= do_fov && t->lifepoints ? build_fov_map(t) : t->fov_map;
- }
- }
- else
+ char test[10 + 1 + 10 + 1 + 1];
+ FILE * file = try_fopen(s[S_PATH_OUT], "r", __func__);
+ try_fgets(test, 10 + 10 + 1 + 1, file, __func__);
+ try_fclose(file, __func__);
+ if (strcmp(test, world.server_test))