change
This commit is contained in:
parent
9cb53b04af
commit
0d432c32ef
|
@ -1505,6 +1505,10 @@ var gameobject = {
|
||||||
stop() {},
|
stop() {},
|
||||||
|
|
||||||
kill() {
|
kill() {
|
||||||
|
if (this.body === -1) {
|
||||||
|
Log.warn(`Object is already dead!`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
Register.endofloop(() => {
|
Register.endofloop(() => {
|
||||||
cmd(2, this.body);
|
cmd(2, this.body);
|
||||||
delete Game.objects[this.body];
|
delete Game.objects[this.body];
|
||||||
|
|
Loading…
Reference in a new issue