summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-24 14:59:02 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-24 14:59:02 +0000
commit172bff1829052f4ec135d73faef83b4fc1a9cc1f (patch)
treeccd4545b2cdb81024207603f4376df242e35fc7c
parenta197f9763d38ebc24e80180160b1db9cb9e2e41f (diff)
downloadhercules-172bff1829052f4ec135d73faef83b4fc1a9cc1f.tar.gz
hercules-172bff1829052f4ec135d73faef83b4fc1a9cc1f.tar.bz2
hercules-172bff1829052f4ec135d73faef83b4fc1a9cc1f.tar.xz
hercules-172bff1829052f4ec135d73faef83b4fc1a9cc1f.zip
- Re-added a 'sprintf' that was accidentally removed in r16495. (bugreport:6729)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16793 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/clif.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index d368f2955..ed717ff28 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11860,9 +11860,11 @@ void clif_parse_OpenVending(int fd, struct map_session_data* sd)
clif_displaymessage (sd->fd, msg_txt(204)); // "You can't open a shop on this cell."
return;
}
-
+
if( vending_checknearnpc(&sd->bl) ) {
- clif_displaymessage(sd->fd, msg_txt(662));
+ char output[150];
+ sprintf(output, msg_txt(662), battle_config.min_npc_vending_distance);
+ clif_displaymessage(sd->fd, output);
clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
return;
}