- fixed 'move' property handler to properly store its z value.

This commit is contained in:
Christoph Oelckers 2023-04-30 13:30:48 +02:00
parent b07a43a9db
commit 7bb678bb7e
2 changed files with 2 additions and 3 deletions

View file

@ -87,7 +87,6 @@ void handle_se130(DDukeActor* i, int countmax);
int dodge(DDukeActor*);
void alterang(int ang, DDukeActor* actor, int g_p);
void fall_common(DDukeActor* actor, int g_p, int(*fallspecial)(DDukeActor*, int));
void checkavailweapon(player_struct* p);
void addammo(int weapon, player_struct* p, int amount);

View file

@ -802,7 +802,7 @@ DEFINE_PROPERTY(move, Sii, DukeActor)
if (PROP_PARM_COUNT > 2)
{
PROP_INT_PARM(v2, 2);
move->movex = v2 / 16.f;
move->movez = v2 / 16.f;
}
}
}
@ -822,7 +822,7 @@ DEFINE_PROPERTY(movef, Sff, DukeActor)
if (PROP_PARM_COUNT > 2)
{
PROP_FLOAT_PARM(v2, 2);
move->movex = v2;
move->movez = v2;
}
}
}