fix incomplete conversions

This commit is contained in:
Kistaro Windrider 2023-09-30 14:27:43 -07:00
parent bad8452f3c
commit 8d5f697961
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -120,7 +120,6 @@ end
function _init()
init_bullet_mt()
init_powerup_mt()
init_ship_mt()
wipe_level()
primary_ship.main_gun = new_gun_of(zap_gun_t)
load_level(example_level)
@ -939,7 +938,7 @@ end
function spawn_rnd_x(typ)
s = typ.new{
x = rnd(104),
y = -(mt.__index.size * 8 - 1)
y = -(typ.size * 8 - 1)
}
eships:push_back(s)
return s
@ -951,10 +950,11 @@ function spawn_blocking_rnd_x(typ)
x = rnd(104),
y = -7,
ice = 1,
orig_die = typ.die,
die = function(self)
freeze -= self.ice
self.ice = 0
mt.__index.die(self)
self:orig_die()
end
}
eships:push_back(s)