Fixed a bug with clipping assignment
This commit is contained in:
@@ -89,8 +89,8 @@ object RegionManager {
|
|||||||
if (!region.isHasFlags) {
|
if (!region.isHasFlags) {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
x -= x shr 6 shl 6
|
x -= (x shr 6) shl 6
|
||||||
y -= y shr 6 shl 6
|
y -= (y shr 6) shl 6
|
||||||
return region.planes[z].flags.clippingFlags[x][y]
|
return region.planes[z].flags.clippingFlags[x][y]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,8 +175,8 @@ object RegionManager {
|
|||||||
if (!region.isHasFlags) {
|
if (!region.isHasFlags) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
x -= x shr 6 shl 6
|
x -= (x shr 6) shl 6
|
||||||
y -= y shr 6 shl 6
|
y -= (y shr 6) shl 6
|
||||||
if (projectile) {
|
if (projectile) {
|
||||||
region.planes[z].projectileFlags.flag(x, y, flag)
|
region.planes[z].projectileFlags.flag(x, y, flag)
|
||||||
} else {
|
} else {
|
||||||
@@ -201,8 +201,8 @@ object RegionManager {
|
|||||||
if (!region.isHasFlags) {
|
if (!region.isHasFlags) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
x -= x shr 6 shl 6
|
x -= (x shr 6) shl 6
|
||||||
y -= y shr 6 shl 6
|
y -= (y shr 6) shl 6
|
||||||
if (projectile) {
|
if (projectile) {
|
||||||
region.planes[z].projectileFlags.unflag(x, y, flag)
|
region.planes[z].projectileFlags.unflag(x, y, flag)
|
||||||
} else {
|
} else {
|
||||||
@@ -226,8 +226,8 @@ object RegionManager {
|
|||||||
if (!region.isHasFlags) {
|
if (!region.isHasFlags) {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
x -= x shr 6 shl 6
|
x -= (x shr 6) shl 6
|
||||||
y -= y shr 6 shl 6
|
y -= (y shr 6) shl 6
|
||||||
return region.planes[z].projectileFlags.clippingFlags[x][y]
|
return region.planes[z].projectileFlags.clippingFlags[x][y]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -170,6 +170,10 @@ class VisualCommand : CommandPlugin() {
|
|||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
"teleallowed" -> {
|
||||||
|
player!!.debug("Is tele allowed here? " + RegionManager.isTeleportPermitted(player!!.location))
|
||||||
|
return true
|
||||||
|
}
|
||||||
"oib" -> player!!.interfaceManager.openInfoBars()
|
"oib" -> player!!.interfaceManager.openInfoBars()
|
||||||
"char" -> CharacterDesign.open(player)
|
"char" -> CharacterDesign.open(player)
|
||||||
"savenpc" -> return true
|
"savenpc" -> return true
|
||||||
|
|||||||
Reference in New Issue
Block a user