summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-25 02:35:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-25 02:35:39 +0300
commite15445f0f8f95f1547798b886b002146d282c006 (patch)
treed29b49d8d7d0c8d997cbd58ce3733dba5c2c5a9a /src/gui/npcdialog.h
parent992f105f78fb0e4c42fcc7941e289a2348a3ccaf (diff)
downloadmanaverse-e15445f0f8f95f1547798b886b002146d282c006.tar.gz
manaverse-e15445f0f8f95f1547798b886b002146d282c006.tar.bz2
manaverse-e15445f0f8f95f1547798b886b002146d282c006.tar.xz
manaverse-e15445f0f8f95f1547798b886b002146d282c006.zip
Save camera mode before speaking with npc and restore after.
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r--src/gui/npcdialog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h
index e76897499..4d919a3f2 100644
--- a/src/gui/npcdialog.h
+++ b/src/gui/npcdialog.h
@@ -172,6 +172,10 @@ class NpcDialog : public Window, public gcn::ActionListener,
*/
static void destroyAll();
+ void saveCamera();
+
+ void restoreCamera();
+
private:
typedef std::list<NpcDialog*> DialogList;
static DialogList instances;
@@ -230,6 +234,9 @@ class NpcDialog : public Window, public gcn::ActionListener,
NpcInputState mInputState;
NpcActionState mActionState;
int mLastNextTime;
+ int mCameraMode;
+ int mCameraX;
+ int mCameraY;
};
#endif // NPCDIALOG_H