♻️Clean up automap code

Use Point for x,y pairs. Make helpers for drawing door and squares
This commit is contained in:
Anders Jenbo 2021-05-02 12:45:21 +02:00
commit 654a2b8834
17 changed files with 416 additions and 458 deletions

View file

@ -117,7 +117,7 @@ static BYTE *multi_recv_packet(TBuffer *pBuf, BYTE *body, DWORD *size)
static void NetRecvPlrData(TPkt *pkt)
{
const Point target = plr[myplr].GetTargetPosition();
Point target = plr[myplr].GetTargetPosition();
pkt->hdr.wCheck = LoadBE32("\0\0ip");
pkt->hdr.px = plr[myplr].position.tile.x;