X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;ds=sidebyside;f=src%2Fserver%2Fgod_commands.c;h=2962d4cc3195cdeea1d962a6434cf7fd9ec710d0;hb=adff1bfac0cebdccbc321e6704951c9fce2ab1e1;hp=eee8b1105e22a5c5cfe22c9bdb6b1f6a867eaacc;hpb=51aa064d49b98de950dbcd7b154fa73d5d2eb359;p=plomrogue diff --git a/src/server/god_commands.c b/src/server/god_commands.c index eee8b11..2962d4c 100644 --- a/src/server/god_commands.c +++ b/src/server/god_commands.c @@ -96,7 +96,7 @@ static uint8_t parse_thingtype_manipulation(char * tok0, char * tok1) } tt->corpse_id = id; } - else if (parse_val(tok0, tok1, s[S_CMD_THINGTYPE], '8', (char *) &id)) + else if (parse_val(tok0, tok1, s[S_CMD_TT_ID], '8', (char *) &id)) { tt = get_thing_type(id); if (!tt) @@ -157,7 +157,7 @@ static uint8_t parse_thingaction_manipulation(char * tok0, char * tok1) } } } - else if (parse_val(tok0, tok1, s[S_CMD_THINGACTION], '8', (char *) &id)) + else if (parse_val(tok0, tok1, s[S_CMD_TA_ID], '8', (char *) &id)) { ta = get_thing_action(id); if (!ta) @@ -286,14 +286,14 @@ static uint8_t parse_thing_manipulation(char * tok0, char * tok1) return 1; } uint8_t id; - if ( parse_thing_type(tok0, tok1, t) + if ( parse_thing_type(tok0, tok1, t) || parse_thing_command(tok0, tok1, t) || parse_val(tok0,tok1, s[S_CMD_T_ARGUMENT], '8', (char *)&t->arg) || parse_val(tok0,tok1, s[S_CMD_T_PROGRESS], '8', (char *)&t->progress) || parse_val(tok0,tok1, s[S_CMD_T_HP], '8', (char *) &t->lifepoints) || parse_position(tok0, tok1, t) || parse_carry(tok0, tok1, t)); - else if (parse_val(tok0, tok1, s[S_CMD_THING], 'i', (char *) &id)) + else if (parse_val(tok0, tok1, s[S_CMD_T_ID], 'i', (char *) &id)) { t = get_thing(world.things, id, 1); char * err = "No thing type found to initialize new thing.";