1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Move these inline to be faster.

This commit is contained in:
Darryl Pogue
2012-04-08 00:19:24 -07:00
parent 5ad311dd97
commit cb209c853f
4 changed files with 9 additions and 15 deletions

View File

@ -76,12 +76,6 @@ plLocation& plLocation::operator=(const plLocation& rhs)
return *this;
}
hsBool plLocation::operator==(const plLocation& u) const
{
// Ignore the itinerant flag when comparing, because
return (fSequenceNumber == u.fSequenceNumber) && ((fFlags & ~kItinerant) == (u.fFlags & ~kItinerant));
}
void plLocation::Set(uint32_t seqNum)
{
fSequenceNumber = seqNum;

View File

@ -89,7 +89,7 @@ protected:
kNormalLocStartIdx = kLocalLocEndIdx + 1,
kReservedLocStart = 0xff000000, // Reserved locations are ones that aren't real game locations,
kReservedLocStart = 0xff000000, // Reserved locations are ones that aren't real game locations,
kGlobalServerLocIdx = kReservedLocStart, // Global pool room for the server. Only the server gets this one
kReservedLocAvailableStart = kGlobalServerLocIdx + 1, // This is the start of the *really* available ones
@ -119,7 +119,12 @@ public:
void Read(hsStream* s);
void Write(hsStream* s) const;
hsBool operator==(const plLocation& loc) const;
hsBool operator==(const plLocation& loc) const
{
// Ignore the itinerant flag when comparing, because
return (fSequenceNumber == loc.fSequenceNumber) &&
((fFlags & ~kItinerant) == (loc.fFlags & ~kItinerant));
}
hsBool operator!=(const plLocation& loc) const { return !(loc == *this); }
plLocation& operator=(const plLocation& loc);
bool operator<(const plLocation& loc ) const { return fSequenceNumber < loc.fSequenceNumber; }