- The GetBlend script call is needed in another place as well.

# Conflicts:
#	src/gl/scene/gl_scene.cpp
This commit is contained in:
drfrag666 2018-12-06 12:00:32 +01:00 committed by drfrag
parent e969e8a86b
commit ab5e5e0389

View file

@ -69,6 +69,7 @@
#include "gl/textures/gl_material.h"
#include "gl/utility/gl_clock.h"
#include "gl/utility/gl_templates.h"
#include "vm.h"
//==========================================================================
//
@ -776,7 +777,14 @@ void GLSceneDrawer::SetFixedColormap (player_t *player)
auto litetype = PClass::FindActor(NAME_PowerLightAmp);
for(AInventory * in = cplayer->mo->Inventory; in; in = in->Inventory)
{
PalEntry color = in->CallGetBlend ();
PalEntry color = 0;
IFVIRTUALPTR(in, AInventory, GetBlend)
{
VMValue params[1] = { in };
VMReturn ret((int*)&color.d);
VMCall(func, params, 1, &ret, 1);
}
// Need special handling for light amplifiers
if (in->IsKindOf(torchtype))