summaryrefslogtreecommitdiff
path: root/src/emap
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap')
-rw-r--r--src/emap/clif.c23
-rw-r--r--src/emap/send.c12
2 files changed, 5 insertions, 30 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 6adb50b..fefd4ea 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -553,25 +553,10 @@ int eclif_send_actual_pre(int *fd,
const int packet = RBUFW (buf, 0);
if (packet == 0x1d7)
{
- struct SessionExt *data = session_get(*fd);
- if (!data)
- return 0;
- if (data->clientVersion >= 9)
- { // not sending old packets to new clients
- hookStop();
- return 0;
- }
- }
- if (packet == 0xb17)
- {
- struct SessionExt *data = session_get(*fd);
- if (!data)
- return 0;
- if (data->clientVersion < 9)
- { // not sending new packets to old clients
- hookStop();
- return 0;
- }
+ // not sending old packets to new clients
+ // probably useless
+ hookStop();
+ return 0;
}
if (packet == 0x84b)
{
diff --git a/src/emap/send.c b/src/emap/send.c
index ae4e000..9c62014 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -91,17 +91,7 @@ void send_changelook(struct map_session_data* sd, struct map_session_data* sd2,
if (!sd)
return;
//ShowWarning("equip: for type %d = %d\n", type, val);
- if (!tdata || tdata->clientVersion < 9)
- {
- WFIFOHEAD (fd, 11);
- WFIFOW (fd, 0) = 0x1d7;
- WFIFOL (fd, 2) = id;
- WFIFOB (fd, 6) = type;
- WFIFOW (fd, 7) = val;
- WFIFOW (fd, 9) = val2;
- WFIFOSET (fd, 11);
- }
- else
+ if (tdata)
{
WFIFOHEAD (fd, 19);
WFIFOW (fd, 0) = 0xb17;