Skip to content

Commit

Permalink
Don't tell all players about my yaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Anderson authored and pchote committed Oct 5, 2010
1 parent 7bdf6a9 commit cdec3fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions OpenRA.Mods.RA/Reservable.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ public void Tick(Actor self)

public IDisposable Reserve(Actor forActor)
{
if (reservedFor != null)
Game.Debug("BUG: #{0} {1} was already reserved (by #{2} {3})".F(
self.ActorID, self.Info.Name, reservedFor.ActorID, reservedFor.Info.Name));
//if (reservedFor != null)
// Game.Debug("BUG: #{0} {1} was already reserved (by #{2} {3})".F(
// self.ActorID, self.Info.Name, reservedFor.ActorID, reservedFor.Info.Name));

reservedFor = forActor;
Game.Debug("#{0} {1} reserved by #{2} {3}".F(
self.ActorID, self.Info.Name, forActor.ActorID, forActor.Info.Name));
//Game.Debug("#{0} {1} reserved by #{2} {3}".F(
// self.ActorID, self.Info.Name, forActor.ActorID, forActor.Info.Name));

return new DisposableAction(() =>
{
Game.Debug("#{0} {1} unreserved".F(
self.ActorID, self.Info.Name));
//Game.Debug("#{0} {1} unreserved".F(
// self.ActorID, self.Info.Name));
reservedFor = null;
});
}
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.RA/ReturnOnIdle.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void Idle(Actor self)
}
else
{
Game.Debug("Plane has nowhere to land; flying away");
//Game.Debug("Plane has nowhere to land; flying away");
self.QueueActivity(new FlyOffMap());
}
}
Expand Down

0 comments on commit cdec3fc

Please sign in to comment.