Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » EncyclopediaMgrClass
Re: EncyclopediaMgrClass [message #492640 is a reply to message #492628] Fri, 03 November 2017 02:45 Go to previous messageGo to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma:
General (3 Stars)

And in case it helps, here is a clone of Reveal_Object(DamageableGameObj *)

bool EncyclopediaMgrClass::Reveal_Object(DamageableGameObj *object)
{
	bool b = false;
	if (object)
	{
		if (cGameType::GameType == 1)
		{
			int type = object->Get_Definition().Get_Encyclopedia_Type();
			int id = object->Get_Definition().Get_Encyclopedia_ID();
			if (type != -1)
			{
				if (!Is_Object_Revealed((TYPE)type,id))
				{
					Display_Event_UI();
				}
				b = Reveal_Object((TYPE)type,id);
			}
		}
	}
	return b;
}


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Weird walking glitch
Next Topic: Crashed while leaving server
Goto Forum:
  


Current Time: Fri Nov 22 14:52:55 MST 2024

Total time taken to generate the page: 0.00787 seconds