2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Display SO name in spawn list

This commit is contained in:
Bartek Bok
2012-07-25 20:50:01 +02:00
parent b3a9d96f40
commit 27ab9ef129

View File

@ -173,7 +173,15 @@ PF_CONSOLE_CMD( Avatar_Spawn, Show, "", "Print a list of spawn points.")
const plSpawnModifier * spawn = mgr->GetSpawnPoint(i); const plSpawnModifier * spawn = mgr->GetSpawnPoint(i);
if(spawn) if(spawn)
{ {
PrintStringF(PrintString, "%d. %s", i, spawn->GetKey()->GetName().c_str()); plString soName = _TEMP_CONVERT_FROM_LITERAL("(none)");
if (spawn->GetNumTargets() > 0)
{
plSceneObject* so = spawn->GetTarget(0);
if (so)
soName = so->GetKeyName();
}
PrintStringF(PrintString, "%d. %s -> %s", i, soName.c_str(), spawn->GetKeyName().c_str());
} }
} }
} }