EraseBlockgit add .
This commit is contained in:
parent
f710f7c04e
commit
1f4a78848f
@ -391,10 +391,10 @@ events.prototype.doAction = function() {
|
||||
if ((typeof data.loc[0] == 'number' || typeof data.loc[0] == 'string')
|
||||
&& (typeof data.loc[1] == 'number' || typeof data.loc[1] == 'string'))
|
||||
data.loc = [[core.calValue(data.loc[0]), core.calValue(data.loc[1])]];
|
||||
data.loc.forEach(function (t) {
|
||||
core.maps.eraseBlock(t[0],t[1],data.floorId);
|
||||
})
|
||||
if (core.isset(data.time) && data.time>0 && (!core.isset(data.floorId) || data.floorId==core.status.floorId)) {
|
||||
data.loc.forEach(function (t) {
|
||||
core.maps.eraseBlock(t[0],t[1],data.floorId);
|
||||
})
|
||||
core.animateBlock(data.loc,'hide',data.time, function () {
|
||||
data.loc.forEach(function (t) {
|
||||
core.removeBlock(t[0],t[1],data.floorId)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user