fix incomplete conversions
This commit is contained in:
parent
bad8452f3c
commit
8d5f697961
@ -120,7 +120,6 @@ end
|
|||||||
function _init()
|
function _init()
|
||||||
init_bullet_mt()
|
init_bullet_mt()
|
||||||
init_powerup_mt()
|
init_powerup_mt()
|
||||||
init_ship_mt()
|
|
||||||
wipe_level()
|
wipe_level()
|
||||||
primary_ship.main_gun = new_gun_of(zap_gun_t)
|
primary_ship.main_gun = new_gun_of(zap_gun_t)
|
||||||
load_level(example_level)
|
load_level(example_level)
|
||||||
@ -939,7 +938,7 @@ end
|
|||||||
function spawn_rnd_x(typ)
|
function spawn_rnd_x(typ)
|
||||||
s = typ.new{
|
s = typ.new{
|
||||||
x = rnd(104),
|
x = rnd(104),
|
||||||
y = -(mt.__index.size * 8 - 1)
|
y = -(typ.size * 8 - 1)
|
||||||
}
|
}
|
||||||
eships:push_back(s)
|
eships:push_back(s)
|
||||||
return s
|
return s
|
||||||
@ -951,10 +950,11 @@ function spawn_blocking_rnd_x(typ)
|
|||||||
x = rnd(104),
|
x = rnd(104),
|
||||||
y = -7,
|
y = -7,
|
||||||
ice = 1,
|
ice = 1,
|
||||||
|
orig_die = typ.die,
|
||||||
die = function(self)
|
die = function(self)
|
||||||
freeze -= self.ice
|
freeze -= self.ice
|
||||||
self.ice = 0
|
self.ice = 0
|
||||||
mt.__index.die(self)
|
self:orig_die()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
eships:push_back(s)
|
eships:push_back(s)
|
||||||
|
Loading…
Reference in New Issue
Block a user