From: Christian Heller Date: Sun, 13 Jul 2014 21:56:47 +0000 (+0200) Subject: Minor code beautifications. X-Git-Tag: tce~705 X-Git-Url: https://plomlompom.com/repos/index.html?a=commitdiff_plain;h=3451efffc74f1fbf2453d89e7858e71c97343c22;p=plomrogue Minor code beautifications. --- diff --git a/src/client/parse.c b/src/client/parse.c index 2767c46..4f47aaa 100644 --- a/src/client/parse.c +++ b/src/client/parse.c @@ -39,7 +39,6 @@ extern void parse_file(char * path, void (* token_to_entry) (char *, char *)) while (try_fgets(errline_line, linemax + 1, file, f_name)) { err_line_inc(); - // err_line(UINT32_MAX == err_line_count, "Line reaches max lines limit."); char * line_copy = strdup(errline_line); token0 = token_from_line(line_copy); if (token0) diff --git a/src/server/god_commands.c b/src/server/god_commands.c index efb607d..4ed9f73 100644 --- a/src/server/god_commands.c +++ b/src/server/god_commands.c @@ -133,8 +133,8 @@ static uint8_t parse_thingaction_manipulation(char * tok0, char * tok1) return 1; } uint8_t id; - if (parse_val(tok0, tok1, s[S_CMD_TA_EFFORT],'8',(char *) &ta->effort)); - else if (parse_val(tok0, tok1, s[S_CMD_TA_NAME], 's', (char *) &ta->name)) + if (parse_val(tok0, tok1, s[S_CMD_TA_EFFORT],'8',(char *)&ta->effort)); + else if (parse_val(tok0, tok1, s[S_CMD_TA_NAME], 's', (char *)&ta->name)) { if (!( try_func_name(ta, s[S_CMD_MOVE], actor_move) || try_func_name(ta, s[S_CMD_PICKUP], actor_pick) diff --git a/src/server/things.c b/src/server/things.c index 6df9b18..09000ed 100644 --- a/src/server/things.c +++ b/src/server/things.c @@ -112,7 +112,7 @@ extern struct Thing * add_thing(int16_t id, uint8_t type, uint8_t y, uint8_t x) { struct Thing * t; t = (struct Thing *) add_to_struct_list(sizeof(struct Thing), 0, id, 0, - (struct NextAndId **) &world.things); + (struct NextAndId **)&world.things); struct ThingType * tt = get_thing_type(type); set_cleanup_flag(CLEANUP_THINGS); t->type = tt->id;