summaryrefslogtreecommitdiff
path: root/src/net/eathena/maprecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-14 16:54:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-14 16:54:21 +0300
commit4af398b58583dd834090f51b70adc749cd082cbb (patch)
treeb11ebd7bb9e9aae0eaded8b53e35ab22154a0746 /src/net/eathena/maprecv.cpp
parentf42895110758580885e52c6dffbb9e090c9ee101 (diff)
downloadmv-4af398b58583dd834090f51b70adc749cd082cbb.tar.gz
mv-4af398b58583dd834090f51b70adc749cd082cbb.tar.bz2
mv-4af398b58583dd834090f51b70adc749cd082cbb.tar.xz
mv-4af398b58583dd834090f51b70adc749cd082cbb.zip
Add into tmwa packet SMSG_MAP_SET_TILES_TYPE. Change protocol version to 7.
Diffstat (limited to 'src/net/eathena/maprecv.cpp')
-rw-r--r--src/net/eathena/maprecv.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/net/eathena/maprecv.cpp b/src/net/eathena/maprecv.cpp
index 44afba62d..dc72c65cd 100644
--- a/src/net/eathena/maprecv.cpp
+++ b/src/net/eathena/maprecv.cpp
@@ -20,12 +20,10 @@
#include "net/eathena/maprecv.h"
-#include "gui/viewport.h"
+#include "logger.h"
#include "net/messagein.h"
-#include "resources/map/map.h"
-
#include "debug.h"
namespace EAthena
@@ -59,29 +57,6 @@ void MapRecv::processInstanceDelete(Net::MessageIn &msg)
msg.readInt32("unused");
}
-void MapRecv::processSetTilesType(Net::MessageIn &msg)
-{
- const int x1 = msg.readInt16("x1");
- const int y1 = msg.readInt16("y1");
- const int x2 = msg.readInt16("x2");
- const int y2 = msg.readInt16("y2");
- const BlockTypeT mask = static_cast<BlockTypeT>(msg.readInt32("mask"));
- const int layer = msg.readInt32("layer");
- const std::string name = msg.readString(16, "map name");
- if (layer)
- return;
- Map *const map = viewport->getMap();
- if (map && map->getGatName() == name)
- {
- for (int y = y1; y <= y2; y ++)
- {
- for (int x = x1; x <= x2; x ++)
- map->setBlockMask(x, y, mask);
- }
- map->updateConditionLayers();
- }
-}
-
void MapRecv::processAddMapMarker(Net::MessageIn &msg)
{
UNIMPLIMENTEDPACKET;