mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Restore old behavior of "angle" event of the ScriptOrigin class on previous versions (below 2.30)
This commit is contained in:
parent
d3f3b9b51c
commit
e5acee55ea
1 changed files with 6 additions and 0 deletions
|
@ -2149,6 +2149,12 @@ void ScriptOrigin::SetAngleEvent(Event* ev)
|
|||
{
|
||||
float angle;
|
||||
|
||||
if (g_target_game < target_game_e::TG_MOHTT) {
|
||||
// Restore the old behavior on previous versions (below 2.30).
|
||||
// For example, higgins rangers in m3l1a would not face forward
|
||||
return ScriptSlave::SetAngleEvent(ev);
|
||||
}
|
||||
|
||||
angle = ev->GetFloat(1);
|
||||
if (angle == -1) {
|
||||
ForwardDir = Vector(0, 0, 90);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue