diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-31 12:47:08 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-31 12:47:08 +0000 |
commit | 97e66bedd0d8a8d95781f8058b5560768f97a1ea (patch) | |
tree | 4693cb1cc3cd56a3eaf663e5e3ae6487226acd99 /crawl-ref/source/dgnevent.h | |
parent | e815ad3dcd37899ea93e57bef68408ee4e971c87 (diff) | |
download | crawl-ref-97e66bedd0d8a8d95781f8058b5560768f97a1ea.tar.gz crawl-ref-97e66bedd0d8a8d95781f8058b5560768f97a1ea.zip |
[1923246] Item pickup marker moves itself when the item it's guarding is apported.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3976 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dgnevent.h')
-rw-r--r-- | crawl-ref/source/dgnevent.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/dgnevent.h b/crawl-ref/source/dgnevent.h index df54c3d27b..168bdeaaa2 100644 --- a/crawl-ref/source/dgnevent.h +++ b/crawl-ref/source/dgnevent.h @@ -28,7 +28,8 @@ enum dgn_event_type DET_PLAYER_CLIMBS = 0x0080, // Player climbing stairs. DET_MONSTER_DIED = 0x0100, DET_ITEM_PICKUP = 0x0200, - DET_FEAT_CHANGE = 0x0400 + DET_ITEM_MOVED = 0x0400, + DET_FEAT_CHANGE = 0x0800 }; class dgn_event @@ -38,11 +39,14 @@ public: coord_def place; int elapsed_ticks; long arg1, arg2; + coord_def dest; public: dgn_event(dgn_event_type t, const coord_def &p = coord_def(), - int ticks = you.time_taken, long a1 = 0, long a2 = 0) - : type(t), place(p), elapsed_ticks(ticks), arg1(a1), arg2(a2) + int ticks = you.time_taken, long a1 = 0, long a2 = 0, + const coord_def &d = coord_def()) + : type(t), place(p), elapsed_ticks(ticks), arg1(a1), + arg2(a2), dest(d) { } }; |