home · contact · privacy
Minor code beautifications.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 13 Jul 2014 21:56:47 +0000 (23:56 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 13 Jul 2014 21:56:47 +0000 (23:56 +0200)
src/client/parse.c
src/server/god_commands.c
src/server/things.c

index 2767c46b55e8d9d5b0856cfd5c320731a0e63128..4f47aaa23951a24e268eee988f7b74a564281231 100644 (file)
@@ -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)
index efb607d9083adb3767c28fbd05bf684959682a76..4ed9f7361452db42732b7af9f5cebf0f4b690515 100644 (file)
@@ -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)
index 6df9b18efe5fe32ab5bd441ac6e2232032540fcf..09000ed34e2073128a1442befe942c1d23ceb40c 100644 (file)
@@ -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;