summaryrefslogtreecommitdiff
path: root/src/emap
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-20 00:17:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-20 00:17:54 +0300
commit70bea71a0907decf83c0c882001fd3d22c4322ad (patch)
tree44ad7ad0bcc0a105c98884d87c5706c7be9c5d7e /src/emap
parent8bd2e025cca547a581de5f44b22e283d8d046915 (diff)
downloadevol-hercules-70bea71a0907decf83c0c882001fd3d22c4322ad.tar.gz
evol-hercules-70bea71a0907decf83c0c882001fd3d22c4322ad.tar.bz2
evol-hercules-70bea71a0907decf83c0c882001fd3d22c4322ad.tar.xz
evol-hercules-70bea71a0907decf83c0c882001fd3d22c4322ad.zip
Drop support for client protocol version 6 (Feb 17 2015).
Diffstat (limited to 'src/emap')
-rw-r--r--src/emap/script_buildins.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 2e47c77..3775814 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -241,7 +241,7 @@ BUILDIN(getItemLink)
if (data)
version = data->clientVersion;
- if (i_data && version >= 7)
+ if (i_data)
{
if (!script_hasdata(st, 3))
{
@@ -264,10 +264,6 @@ BUILDIN(getItemLink)
strcat(item_name, "|@@]");
}
}
- else if (i_data)
- {
- sprintf(item_name, "[@@%u|%s@@]", (unsigned)i_data->nameid, i_data->jname);
- }
else if (item_id > 0)
{
sprintf(item_name, "[@@%u|Unknown Item@@]", (unsigned)item_id);
@@ -1856,7 +1852,7 @@ BUILDIN(getInvIndexLink)
if (data)
version = data->clientVersion;
- if (i_data && version >= 7)
+ if (i_data)
{
const struct item *const item = &sd->status.inventory[index];
if (item->card[0] == CARD0_PET ||
@@ -1878,10 +1874,6 @@ BUILDIN(getInvIndexLink)
strcat(item_name, "|@@]");
}
}
- else if (i_data)
- {
- sprintf(item_name, "[@@%u|%s@@]", (unsigned)i_data->nameid, i_data->jname);
- }
else if (item_id > 0)
{
sprintf(item_name, "[@@%u|Unknown Item@@]", (unsigned)item_id);