Subversion Repositories spk

Rev

Rev 226 | Rev 294 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 226 Rev 244
Line 514... Line 514...
514
			if ( pXspFile->IsExistingShip() )
514
			if ( pXspFile->IsExistingShip() )
515
				wprintf(L"Ship ID: %s (Replace Existing Ship)\n", pXspFile->shipID().c_str() );
515
				wprintf(L"Ship ID: %s (Replace Existing Ship)\n", pXspFile->shipID().c_str() );
516
			else
516
			else
517
				wprintf(L"Ship ID: %s\n", pXspFile->shipID().c_str() );
517
				wprintf(L"Ship ID: %s\n", pXspFile->shipID().c_str() );
518
 
518
 
519
			if ( pXspFile->AnyShipyards() )
519
			if ( pXspFile->anyShipyards() )
520
			{
520
			{
521
				printf ( "Add To Shipyards:\n" );
521
				printf ( "Add To Shipyards:\n" );
522
				for ( int i = 1; i <= GetMaxShipyards(); i *= 2 )
522
				for (unsigned long i = 1; i <= GetMaxShipyards(); i *= 2 )
523
				{
523
				{
524
					if ( pXspFile->IsShipyard(i) )
524
					if ( pXspFile->isShipyard(static_cast<ShipyardRace>(i)) )
525
						wprintf(L"\t%s\n", GetShipyardName(i).c_str());
525
						wprintf(L"\t%s\n", GetShipyardName(static_cast<ShipyardRace>(i)).c_str());
526
				}
526
				}
527
			}
527
			}
528
 
528
 
529
			for ( SWeaponMask *text = pXspFile->GetLaserMasks()->First(); text; text = pXspFile->GetLaserMasks()->Next() )
529
			for ( SWeaponMask *text = pXspFile->GetLaserMasks()->First(); text; text = pXspFile->GetLaserMasks()->Next() )
530
				printf ( "Laser Mask, Game: %s, Mask: %d\n", GetGameName(text->iGame).c_str(), text->iMask);
530
				printf ( "Laser Mask, Game: %s, Mask: %d\n", GetGameName(text->iGame).c_str(), text->iMask);