forked from MTSR/mapserver
mapobj with absolute coords
This commit is contained in:
parent
65197c2a45
commit
e7b74187c5
@ -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),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user