mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
remove some BUG comments
they're covered by a IsHost check
This commit is contained in:
parent
5260896313
commit
9e1b7b5b9f
@ -60,7 +60,6 @@ internal class GhostPartyPathDirectorPatches : QSBPatch
|
||||
var ghostBrain = __instance._dispatchedGhosts[i].GetWorldObject<QSBGhostBrain>();
|
||||
if (ghostBrain.GetCurrentActionName() == GhostAction.Name.PartyPath)
|
||||
{
|
||||
// BUG: breaks on client cuz cast
|
||||
var partyPathAction = (QSBPartyPathAction)ghostBrain.GetCurrentAction();
|
||||
if (partyPathAction.hasReachedEndOfPath)
|
||||
{
|
||||
@ -105,7 +104,6 @@ internal class GhostPartyPathDirectorPatches : QSBPatch
|
||||
var num = Random.Range(0, __instance._ghostSpawns.Length);
|
||||
ghostBrain2.AttachedObject.transform.position = __instance._ghostSpawns[num].spawnTransform.position;
|
||||
ghostBrain2.AttachedObject.transform.eulerAngles = Vector3.up * __instance._ghostSpawns[num].spawnTransform.eulerAngles.y;
|
||||
// BUG: breaks on client cuz cast
|
||||
((QSBPartyPathAction)ghostBrain2.GetCurrentAction()).StartFollowPath();
|
||||
__instance._ghostSpawns[num].spawnDoor.Open();
|
||||
__instance._ghostSpawns[num].spawnDoorTimer = Time.timeSinceLevelLoad + 4f;
|
||||
|
@ -200,7 +200,6 @@ internal class GhostZone2DirectorPatches : QSBPatch
|
||||
DebugLog.DebugWrite($"- fade light down");
|
||||
QSBGhostZone2Director.ElevatorsStatus[j].elevatorPair.elevator.topLight.FadeTo(0f, 0.2f);
|
||||
DebugLog.DebugWrite($"- get action");
|
||||
// BUG: breaks on client cuz cast
|
||||
QSBGhostZone2Director.ElevatorsStatus[j].elevatorAction = (QSBElevatorWalkAction)__instance._elevators[j].ghost.GetWorldObject<QSBGhostBrain>().GetAction(GhostAction.Name.ElevatorWalk);
|
||||
DebugLog.DebugWrite($"- CallToUseElevator on action");
|
||||
QSBGhostZone2Director.ElevatorsStatus[j].elevatorAction.CallToUseElevator();
|
||||
|
Loading…
Reference in New Issue
Block a user