mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 22:19:07 +00:00
Fix regression from 7ff0caaed8
.
This fixes a glitch in the final boss' last form. Due to a missing Beam::trace() call, the beam's angle was not updated, and it always pointed into the upper left corner.
This commit is contained in:
parent
12ea97f051
commit
45821d15ff
1 changed files with 14 additions and 0 deletions
|
@ -3758,6 +3758,19 @@ luaFunc(beam_setFirer)
|
||||||
luaReturnNil();
|
luaReturnNil();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note the additional trace() call
|
||||||
|
luaFunc(beam_setPosition_override)
|
||||||
|
{
|
||||||
|
Beam *b = beam(L);
|
||||||
|
if (b)
|
||||||
|
{
|
||||||
|
b->position.interpolateTo(Vector(lua_tonumber(L, 2), lua_tonumber(L, 3)),
|
||||||
|
lua_tonumber(L, 4), lua_tonumber(L, 5), lua_tonumber(L, 6), lua_tonumber(L, 7));
|
||||||
|
b->trace();
|
||||||
|
}
|
||||||
|
luaReturnNil();
|
||||||
|
}
|
||||||
|
|
||||||
luaFunc(getStringBank)
|
luaFunc(getStringBank)
|
||||||
{
|
{
|
||||||
luaReturnStr(dsq->continuity.stringBank.get(lua_tointeger(L, 1)).c_str());
|
luaReturnStr(dsq->continuity.stringBank.get(lua_tointeger(L, 1)).c_str());
|
||||||
|
@ -8566,6 +8579,7 @@ static const struct {
|
||||||
{"bone_getPosition", l_bone_getWorldPosition},
|
{"bone_getPosition", l_bone_getWorldPosition},
|
||||||
{ "entity_delete", l_entity_delete_override },
|
{ "entity_delete", l_entity_delete_override },
|
||||||
{ "entity_setRenderPass", l_entity_setRenderPass_override },
|
{ "entity_setRenderPass", l_entity_setRenderPass_override },
|
||||||
|
{ "beam_setPosition", l_beam_setPosition_override },
|
||||||
|
|
||||||
// -- deprecated/compatibility related functions below here --
|
// -- deprecated/compatibility related functions below here --
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue