- gameexec cleanup

This commit is contained in:
Christoph Oelckers 2022-09-13 18:20:04 +02:00
parent 3cefda2983
commit 3711473194

View file

@ -1168,16 +1168,13 @@ void DoActor(bool bSet, int lVar1, int lLabelID, int lVar2, DDukeActor* sActor,
switch (lLabelID) switch (lLabelID)
{ {
case ACTOR_X: case ACTOR_X:
/*if (bSet) act->int_pos().X = lValue; if (!bSet) SetGameVarID(lVar2, act->spr.pos.X / maptoworld, sActor, sPlayer);
else*/ SetGameVarID(lVar2, act->int_pos().X, sActor, sPlayer);
break; break;
case ACTOR_Y: case ACTOR_Y:
/*if (bSet) act->int_pos().Y = lValue; if (!bSet) SetGameVarID(lVar2, act->spr.pos.Y / maptoworld, sActor, sPlayer);
else*/ SetGameVarID(lVar2, act->int_pos().Y, sActor, sPlayer);
break; break;
case ACTOR_Z: case ACTOR_Z:
/*if (bSet) act->int_pos().Z = lValue; if (!bSet) SetGameVarID(lVar2, act->spr.pos.Z / zmaptoworld, sActor, sPlayer);
else*/ SetGameVarID(lVar2, act->int_pos().Z, sActor, sPlayer);
break; break;
case ACTOR_CSTAT: case ACTOR_CSTAT:
if (bSet) act->spr.cstat = ESpriteFlags::FromInt(lValue); if (bSet) act->spr.cstat = ESpriteFlags::FromInt(lValue);