Topic: Problem with Rakellian Race.  (Read 2381 times)

0 Members and 1 Guest are viewing this topic.

Tombstone

  • Guest
Problem with Rakellian Race.
« on: February 12, 2004, 12:34:37 pm »
Anyone know if there is an issue with the Rakellian race in the API.  I have added a full shiplist for the Rakellians, and given them hexs on the map, but the function below always returns kNeutralRace when in a Rakellian hex.  This function works perfectly for every other race except the Rakellians.  Anyone know how I can detect if a given hex is Rakellian?

eRaceName tPlanetTeamShip::mTranslateHexIntoRace( tMetaLocationSpec hex )
{
   eRaceName returnRace = kPirate;

   if ( hex.fLocationWhoHexFlags & kFederationRaceHex )
      returnRace = kFederation;
   else if ( hex.fLocationWhoHexFlags & kKlingonRaceHex )
      returnRace = kKlingon;
   else if ( hex.fLocationWhoHexFlags & kRomulanRaceHex )
      returnRace = kRomulan;
   else if ( hex.fLocationWhoHexFlags & kBorgRaceHex )
      returnRace = kBorg;
   else if ( hex.fLocationWhoHexFlags & kCardassianRaceHex )
      returnRace = kCardassian;
   else if ( hex.fLocationWhoHexFlags & kSpecies8472RaceHex )
      returnRace = kSpecies8472;
   else if ( hex.fLocationWhoHexFlags & kFerengiRaceHex )
      returnRace = kFerengi;
   else if ( hex.fLocationWhoHexFlags & kRakellianRaceHex )
      returnRace = kRakellian;
   else
      returnRace = kNeutralRace;

   return returnRace;
}