Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » EncyclopediaMgrClass
Re: EncyclopediaMgrClass [message #492642 is a reply to message #492640] Fri, 03 November 2017 02:48 Go to previous messageGo to previous message
Neijwiert is currently offline  Neijwiert
Messages: 124
Registered: October 2009
Karma:
Recruit
jonwil wrote on Fri, 03 November 2017 02:45

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;
}



Thats pretty much copy paste of what I have posted in my first post Smile
 
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:29:28 MST 2024

Total time taken to generate the page: 0.00751 seconds