summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-04-19 15:26:36 +0200
committerHaru <haru@dotalux.com>2016-04-23 18:42:57 +0200
commit2b1dce1e4acf46941657cab6da008c774f52de7c (patch)
tree008455c1ef1f50c4b2eb8e26f18262f26d9dc5d7 /src/map/atcommand.c
parent3af03d2a2e8f2054f9a44e272505b1a74d6bdaf6 (diff)
downloadhercules-2b1dce1e4acf46941657cab6da008c774f52de7c.tar.gz
hercules-2b1dce1e4acf46941657cab6da008c774f52de7c.tar.bz2
hercules-2b1dce1e4acf46941657cab6da008c774f52de7c.tar.xz
hercules-2b1dce1e4acf46941657cab6da008c774f52de7c.zip
Changed map_session_data::chatID to int (and renamed to chat_id)
- Chat IDs are signed integers. - Resolves various warnings, depending on the compiler settings. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 3da5c203f..595cb8567 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -3793,7 +3793,7 @@ ACMD(mapinfo)
if( pl_sd->mapindex == m_index ) {
if( pl_sd->state.vending )
vend_num++;
- else if ((cd = map->id2cd(pl_sd->chatID)) != NULL && cd->usersd[0] == pl_sd)
+ else if ((cd = map->id2cd(pl_sd->chat_id)) != NULL && cd->usersd[0] == pl_sd)
chat_num++;
}
}
@@ -3972,7 +3972,7 @@ ACMD(mapinfo)
clif->message(fd, msg_fd(fd,1113)); // ----- Chats in Map -----
iter = mapit_getallusers();
for (pl_sd = BL_UCCAST(BL_PC, mapit->first(iter)); mapit->exists(iter); pl_sd = BL_UCCAST(BL_PC, mapit->next(iter))) {
- if ((cd = map->id2cd(pl_sd->chatID)) != NULL && pl_sd->mapindex == m_index && cd->usersd[0] == pl_sd) {
+ if ((cd = map->id2cd(pl_sd->chat_id)) != NULL && pl_sd->mapindex == m_index && cd->usersd[0] == pl_sd) {
safesnprintf(atcmd_output, sizeof(atcmd_output), msg_fd(fd,1114), // Chat: %s | Player: %s | Location: %d %d
cd->title, pl_sd->status.name, cd->bl.x, cd->bl.y);
clif->message(fd, atcmd_output);