diff options
author | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-06-01 03:24:04 +0000 |
---|---|---|
committer | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-06-01 03:24:04 +0000 |
commit | 5f7b0211102fbf9d3004b7feb2bb6c5627733770 (patch) | |
tree | 0f0225dbea846f8d281c2ecff741386525359036 /src/map | |
parent | 2be05e246555bf5d1a21e734918fec4ec9479fa3 (diff) | |
download | hercules-5f7b0211102fbf9d3004b7feb2bb6c5627733770.tar.gz hercules-5f7b0211102fbf9d3004b7feb2bb6c5627733770.tar.bz2 hercules-5f7b0211102fbf9d3004b7feb2bb6c5627733770.tar.xz hercules-5f7b0211102fbf9d3004b7feb2bb6c5627733770.zip |
Rewrote the autotrade mapflag check and display from r14322.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14324 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/atcommand.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 50a2d0403..7564ec329 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -4281,8 +4281,11 @@ int atcommand_mapinfo(const int fd, struct map_session_data* sd, const char* com clif_displaymessage(fd, "------ Map Flags ------"); if (map[m_id].flag.town) clif_displaymessage(fd, "Town Map"); - - clif_displaymessage(fd, "Autotrade %s", (battle_config.autotrade_mapflag == map[m_id].flag.autotrade) ? "Enabled" : "Disabled"); + + if (battle_config.autotrade_mapflag == map[m_id].flag.autotrade) + clif_displaymessage(fd, "Autotrade Enabled"); + else + clif_displaymessage(fd, "Autotrade Disabled"); if (map[m_id].flag.battleground) clif_displaymessage(fd, "Battlegrounds ON"); |