mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 04:24:39 +00:00
- Duke: Remove unused angle rotation from ccmds()
.
This commit is contained in:
parent
559ee2f3c6
commit
51b0bd284d
1 changed files with 8 additions and 9 deletions
|
@ -107,10 +107,8 @@ static int ccmd_spawn(CCmdFuncPtr parm)
|
||||||
return CCMD_SHOWHELP;
|
return CCMD_SHOWHELP;
|
||||||
}
|
}
|
||||||
|
|
||||||
DDukeActor* spawned;
|
const auto pact = getPlayer(myconnectindex)->GetActor();
|
||||||
if (!cls) spawned = spawnsprite(getPlayer(myconnectindex)->GetActor(), picno);
|
if (DDukeActor* spawned = !cls ? spawnsprite(pact, picno) : spawn(pact, cls))
|
||||||
else spawned = spawn(getPlayer(myconnectindex)->GetActor(), cls);
|
|
||||||
if (spawned)
|
|
||||||
{
|
{
|
||||||
if (set & 1) spawned->spr.pal = (uint8_t)pal;
|
if (set & 1) spawned->spr.pal = (uint8_t)pal;
|
||||||
if (set & 2) spawned->spr.cstat = ESpriteFlags::FromInt(cstat);
|
if (set & 2) spawned->spr.cstat = ESpriteFlags::FromInt(cstat);
|
||||||
|
@ -131,17 +129,18 @@ static int ccmd_spawn(CCmdFuncPtr parm)
|
||||||
void GameInterface::ToggleThirdPerson()
|
void GameInterface::ToggleThirdPerson()
|
||||||
{
|
{
|
||||||
if (gamestate != GS_LEVEL) return;
|
if (gamestate != GS_LEVEL) return;
|
||||||
if (!isRRRA() || (!getPlayer(myconnectindex)->OnMotorcycle && !getPlayer(myconnectindex)->OnBoat))
|
const auto p = getPlayer(myconnectindex);
|
||||||
|
if (!isRRRA() || (!p->OnMotorcycle && !p->OnBoat))
|
||||||
{
|
{
|
||||||
if (getPlayer(myconnectindex)->over_shoulder_on)
|
if (p->over_shoulder_on)
|
||||||
getPlayer(myconnectindex)->over_shoulder_on = 0;
|
p->over_shoulder_on = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
getPlayer(myconnectindex)->over_shoulder_on = 1;
|
p->over_shoulder_on = 1;
|
||||||
cameradist = 0;
|
cameradist = 0;
|
||||||
cameraclock = INT_MIN;
|
cameraclock = INT_MIN;
|
||||||
}
|
}
|
||||||
FTA(QUOTE_VIEW_MODE_OFF + getPlayer(myconnectindex)->over_shoulder_on, getPlayer(myconnectindex));
|
FTA(QUOTE_VIEW_MODE_OFF + p->over_shoulder_on, p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue