summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-30 20:35:51 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-30 20:35:51 +0200
commitd9b28d9fb48e8634670850729d576eaa2051561c (patch)
treecc7ebb8b8b31773cb8df50ca863c2b465c14eadb /src/common
parentca5afebc85cbf769122105904b512942272c0ea3 (diff)
downloadmanaserv-d9b28d9fb48e8634670850729d576eaa2051561c.tar.gz
manaserv-d9b28d9fb48e8634670850729d576eaa2051561c.tar.xz
manaserv-d9b28d9fb48e8634670850729d576eaa2051561c.zip
Made the db version an official pre-requisite.
It was uneasy to not miss something when updating the db. And as the db version is somewhat corresponding to a certain protocol version, adding it in the protocol file sounds relevant to me, and helps when updating it.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/manaserv_protocol.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/manaserv_protocol.h b/src/common/manaserv_protocol.h
index 2a340b8..e1e1f88 100644
--- a/src/common/manaserv_protocol.h
+++ b/src/common/manaserv_protocol.h
@@ -24,7 +24,10 @@
namespace ManaServ {
-enum { PROTOCOL_VERSION = 1 };
+enum {
+ PROTOCOL_VERSION = 1,
+ SUPPORTED_DB_VERSION = 15
+};
/**
* Enumerated type for communicated messages: