Don't tell all players about my yaks

This commit is contained in:
Caleb Anderson
2010-10-04 22:23:57 -05:00
committed by Paul Chote
parent 7bdf6a953f
commit cdec3fce26
2 changed files with 8 additions and 8 deletions

14
OpenRA.Mods.RA/Reservable.cs Normal file → Executable file
View File

@@ -36,18 +36,18 @@ namespace OpenRA.Mods.RA
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;
});
}