mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Refactor and fix some object arithmetic comparisons
This commit is contained in:
@@ -123,6 +123,16 @@ void ServerImpl::remove (Door& door)
|
||||
//
|
||||
// Thread
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
int ServerImpl::compare (Port const& lhs, Port const& rhs)
|
||||
{
|
||||
if (lhs < rhs)
|
||||
return -1;
|
||||
else if (lhs > rhs)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Updates our Door list based on settings.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user