move waypoint namer into WaypointTool

This commit is contained in:
Chris Forbes
2011-01-30 14:11:14 +13:00
parent 40f88e5c47
commit 4be20e7aac
2 changed files with 12 additions and 12 deletions

View File

@@ -139,17 +139,6 @@ namespace OpenRA.Editor
}
}
int wpid;
public string NextWpid()
{
for (; ; )
{
var a = "wp{0}".F(wpid++);
if (!Map.Waypoints.ContainsKey(a))
return a;
}
}
void Erase()
{
// Crash preventing