Sa-Matra special case for planetdump.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1850 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -773,9 +773,12 @@ dumpMoon (FILE *out, const PLANET_DESC *moon)
|
|||||||
|
|
||||||
if (moon->data_index == (BYTE) ~0)
|
if (moon->data_index == (BYTE) ~0)
|
||||||
{
|
{
|
||||||
// StarBase
|
|
||||||
typeStr = "StarBase";
|
typeStr = "StarBase";
|
||||||
}
|
}
|
||||||
|
else if (moon->data_index == (BYTE) (~0 - 1))
|
||||||
|
{
|
||||||
|
typeStr = "Sa-Matra";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
typeStr = planetTypeString (moon->data_index & ~PLANET_SHIELDED);
|
typeStr = planetTypeString (moon->data_index & ~PLANET_SHIELDED);
|
||||||
@@ -789,10 +792,18 @@ dumpMoon (FILE *out, const PLANET_DESC *moon)
|
|||||||
static void
|
static void
|
||||||
dumpWorld (FILE *out, const PLANET_DESC *world)
|
dumpWorld (FILE *out, const PLANET_DESC *world)
|
||||||
{
|
{
|
||||||
if ((world->data_index == (BYTE) ~0) ||
|
if (world->data_index == (BYTE) ~0) {
|
||||||
(world->data_index & PLANET_SHIELDED))
|
// StarBase
|
||||||
{
|
return;
|
||||||
// StarBase or slave shielded planet.
|
}
|
||||||
|
|
||||||
|
if (world->data_index == (BYTE)(~0 - 1)) {
|
||||||
|
// Sa-Matra
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (world->data_index & PLANET_SHIELDED) {
|
||||||
|
// Slave-shielded planet
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user