diff options
author | Bardur Arantsson <bardur@scientician.net> | 2013-03-24 18:04:40 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2013-09-27 14:46:40 +0200 |
commit | fb0511aaa96c7a6089f39508703a8e0479b709f1 (patch) | |
tree | e13d144f8614d143b9a856b59fa46b4f3293ceef /src/q_fireprof.c | |
parent | 1014b3342b9a61a5477b06b566271b5216edbbe3 (diff) |
Split fireproofing quest from plots.c
Diffstat (limited to 'src/q_fireprof.c')
-rw-r--r-- | src/q_fireprof.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/q_fireprof.c b/src/q_fireprof.c index 3afa348f..e252af4f 100644 --- a/src/q_fireprof.c +++ b/src/q_fireprof.c @@ -1,4 +1,6 @@ -#undef cquest +#include "q_fireprof.h" +#include "quark.h" + #define cquest (quest[QUEST_FIREPROOF]) #define print_hook(fmt,...) do { fprintf(hook_file, fmt, ##__VA_ARGS__); } while (0) @@ -379,8 +381,7 @@ void quest_fireproof_building(bool_ *paid, bool_ *recreate) static bool_ fireproof_get_hook(char *fmt) { - object_type *o_ptr = param_pile[0].o_ptr; - assert(o_ptr != NULL); + object_type *o_ptr = get_next_arg_obj(); /* check that player is in the quest, haven't picked up the * item already, and check that it's the real item and not another one |