1
0
forked from MTSR/mapserver

mapobj with absolute coords

This commit is contained in:
NatureFreshMilk 2019-01-24 09:03:29 +01:00
parent 65197c2a45
commit e7b74187c5

View File

@ -33,9 +33,9 @@ func NewMapObject(MBPos *coords.MapBlockCoords, x int, y int, z int, _type strin
o := MapObject{
MBPos: MBPos,
Type: _type,
X: x,
Y: y,
Z: z,
X: MBPos.X + x,
Y: MBPos.Y + y,
Z: MBPos.Z + z,
Mtime: time.Now().Unix(),
Attributes: make(map[string]string),
}