diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-02 17:50:15 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-02 17:50:15 +0000 |
commit | 665680682b57d01415afb478b67d0c7c61d21119 (patch) | |
tree | 775245f9ea473abcac9d4c29c77c69daa1061345 /src/map/atcommand.c | |
parent | 493fb3cce76b9b659010b8aeee07916de85cdd5b (diff) | |
download | hercules-665680682b57d01415afb478b67d0c7c61d21119.tar.gz hercules-665680682b57d01415afb478b67d0c7c61d21119.tar.bz2 hercules-665680682b57d01415afb478b67d0c7c61d21119.tar.xz hercules-665680682b57d01415afb478b67d0c7c61d21119.zip |
* Added motd_type
* Edited atcommand.c to fix compile warnings
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@436 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index ce2ffaf08..7accfa639 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2884,7 +2884,7 @@ int atcommand_go( return -1; } } else if (town >= 0 && town < (int)(sizeof(data) / sizeof(data[0]))) { - m = map_mapname2mapid(data[town].map); + m = map_mapname2mapid((char *)data[town].map); if (m >= 0 && map[m].flag.nowarpto && battle_config.any_warp_GM_min_level > pc_isGM(sd)) { clif_displaymessage(fd, "You are not authorised to warp you to this destination map."); return -1; @@ -2893,7 +2893,7 @@ int atcommand_go( clif_displaymessage(fd, "You are not authorised to warp you from your actual map."); return -1; } - if (pc_setpos(sd, data[town].map, data[town].x, data[town].y, 3) == 0) { + if (pc_setpos(sd, (char *)data[town].map, data[town].x, data[town].y, 3) == 0) { clif_displaymessage(fd, msg_table[0]); // Warped. } else { clif_displaymessage(fd, msg_table[1]); // Map not found. |