summaryrefslogtreecommitdiff
path: root/src/emap/data
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-28 18:36:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-28 18:36:58 +0300
commit07758e21abf23ad6742b0f6aacedbb7c60c81e98 (patch)
tree7f5b9b0bd7107426f97bc91150b52d2655e0d3f4 /src/emap/data
parent7218f15b792d6ae2bf88b65f6901ae5aa86ecb7a (diff)
downloadevol-hercules-07758e21abf23ad6742b0f6aacedbb7c60c81e98.tar.gz
evol-hercules-07758e21abf23ad6742b0f6aacedbb7c60c81e98.tar.bz2
evol-hercules-07758e21abf23ad6742b0f6aacedbb7c60c81e98.tar.xz
evol-hercules-07758e21abf23ad6742b0f6aacedbb7c60c81e98.zip
Add support for team id for battleground players.
New script function: setbgteam bgid, num It set for 'bgid' team id to 'num'.
Diffstat (limited to 'src/emap/data')
-rw-r--r--src/emap/data/bgd.c5
-rw-r--r--src/emap/data/session.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/emap/data/bgd.c b/src/emap/data/bgd.c
index 6f5956c..187317e 100644
--- a/src/emap/data/bgd.c
+++ b/src/emap/data/bgd.c
@@ -23,9 +23,14 @@ struct BgdExt *bgd_get(struct battleground_data *bd)
struct BgdExt *data = getFromBGDATA(bd, 0);
if (!data)
{
+ ShowWarning("creating bg\n");
data = bgd_create();
addToBGDATA(bd, data, 0, true);
}
+ else
+ {
+ ShowWarning("getting bg\n");
+ }
return data;
}
diff --git a/src/emap/data/session.c b/src/emap/data/session.c
index 0275ca5..fe8a423 100644
--- a/src/emap/data/session.c
+++ b/src/emap/data/session.c
@@ -46,5 +46,6 @@ struct SessionExt *session_create(void)
data->language = 0;
data->state = 0;
data->onlinelistlasttime = 0;
+ data->teamId = 0;
return data;
}