Exemplo n.º 1
0
GameObject::~GameObject()
{
	if (objData)
	{
		Delete();
		objData->Data2 = nullptr;
		objData->DeleteSub = nullptr;
		DeleteObject_(objData);
	}
}
Exemplo n.º 2
0
static void __cdecl SuperSonicManager_Main(ObjectMaster* _this)
{
	if (super_count < 1)
	{
		DeleteObject_(_this);
		return;
	}

	if (CurrentSong != -1 && (CurrentLevel != last_level || CurrentAct != last_act))
		SetMusic();

	// HACK: Result screen disables P1 control. There's probably a nicer way to do this, we just need to find it.
	if (IsControllerEnabled(0))
	{
		++ring_timer %= 60;

		if (!ring_timer)
			AddRings(-1);
	}
}