X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fmain.c;h=4a7b57d1b5190ac6efce8f240587d481e8359888;hb=18fefabcc05bb3903384efbcc92f4303d9ac9567;hp=bb2ef43c438c931ff7df99d30f1823563ef6853d;hpb=e31f0c764131a28ac50c6f9c35e0a190f4bc95e4;p=plomrogue diff --git a/src/main.c b/src/main.c index bb2ef43..4a7b57d 100644 --- a/src/main.c +++ b/src/main.c @@ -25,7 +25,7 @@ #include "wincontrol.h" /* get_win_by_id(), get_winconf_by_win() */ #include "rrand.h" /* for rrand(), rrand_seed() */ #include "rexit.h" /* for exit_game(), exit_err() */ -#include "command_db.h" /* for init_command_db() */ +#include "command_db.h" /* for init_command_db(), is_command_id_shortdsc() */ #include "control.h" /* for *_control(), get_available_keycode_to_action() */ @@ -182,6 +182,10 @@ int main(int argc, char *argv[]) { break; } + if (is_command_id_shortdsc(&world, action, "drop")) + { + world.inventory_select = getc(file); + } record_control(action, &world); } } @@ -201,6 +205,10 @@ int main(int argc, char *argv[]) action = getc(file); if (EOF != action) { + if (is_command_id_shortdsc(&world, action, "drop")) + { + world.inventory_select = getc(file); + } record_control(action, &world); } }