diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-28 01:27:57 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-28 01:27:57 +0000 |
commit | 89d67a3c0f222529e61207891ae320a5a5babcdf (patch) | |
tree | 7e7615e72848a49c1ddcd6153857cebbc7320b15 /src/localplayer.h | |
parent | 9cd73fb8c9d4890336d0d0ccf290d45084155c2d (diff) | |
download | mana-89d67a3c0f222529e61207891ae320a5a5babcdf.tar.gz mana-89d67a3c0f222529e61207891ae320a5a5babcdf.tar.bz2 mana-89d67a3c0f222529e61207891ae320a5a5babcdf.tar.xz mana-89d67a3c0f222529e61207891ae320a5a5babcdf.zip |
Fixed attacking so that it will actually continue to attack in
succession like it's intended to if it's given a true keep flag, or just
do one attack if that flag isn't set. Since most people seem to prefer to
continue to attack when attacking, shift will be used for when someone only
wants to hit the target once.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index dcdcbeec..1eebabb6 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -236,8 +236,10 @@ class LocalPlayer : public Player bool mTrading; bool mInStorage; /**< Whether storage is currently accessible */ bool mGoingToTarget; + bool mKeepAttacking;/** Whether or not to continue to attack */ int mTargetTime; /** How long the being has been targeted **/ int mLastAction; /**< Time stamp of the last action, -1 if none. */ + int mLastTarget; /** Time stamp of last targeting action, -1 if none. */ int mWalkingDir; /**< The direction the player is walking in. */ int mDestX; /**< X coordinate of destination. */ int mDestY; /**< Y coordinate of destination. */ |