mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Crash fix when using LOBOT: We never actually set the paletteTable->pForcedPalette, so it was doing some weird stuff when it got used. The flash white code sets the pSoldier's forced palette, so now it works as it should (by Asdow)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8922 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -955,7 +955,7 @@ inline UINT16 * GetShadeTable(LEVELNODE * pNode, SOLDIERTYPE * pSoldier, SOLDIER
|
|||||||
{
|
{
|
||||||
if (pSoldier->flags.fForceShade)
|
if (pSoldier->flags.fForceShade)
|
||||||
{
|
{
|
||||||
pShadeTable = pPaletteTable->pForcedShade;
|
pShadeTable = pSoldier->pForcedShade;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check if we are a merc duplicate, if so, only do minimal stuff!
|
// check if we are a merc duplicate, if so, only do minimal stuff!
|
||||||
|
|||||||
Reference in New Issue
Block a user