bool ClearThrone(int TimeOut) { bool RetVal = false; short slot = 0; int StartTime = clock(); while ((clock() - StartTime)30) || (abs(Throne_Monsters[slot].Y_pos-My_Character.Y_pos)>30)) { StartEndPATH[2][1][0] = 19; StartEndPATH[2][1][1] = 7; currentlevel_Pathing = 2; if (!CheckIfNearEntrance()) { if (PathThrone(19,8) == false) { LogWrite_("General_Log.log",true,"Failed to path through throne ().\n"); ExitGame(true); _endthread(); } } } GenericAttack(slot); CheckPickit(); } return RetVal; }