mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 04:46:48 +01:00
Revert "Backported: RID: Change comparison operators to use RID_Data id instead of address. This should helps making sorting more deterministic in physics and rendering. The same change was done for 4.0 in 4f16397. - akien-mga - 797321fec4
"
This reverts commit 185cfb3291
.
This commit is contained in:
parent
422629c281
commit
a7fb068ab4
@ -67,13 +67,13 @@ public:
|
||||
return _data == p_rid._data;
|
||||
}
|
||||
_FORCE_INLINE_ bool operator<(const RID &p_rid) const {
|
||||
return get_id() < p_rid.get_id();
|
||||
return _data < p_rid._data;
|
||||
}
|
||||
_FORCE_INLINE_ bool operator<=(const RID &p_rid) const {
|
||||
return get_id() <= p_rid.get_id();
|
||||
return _data <= p_rid._data;
|
||||
}
|
||||
_FORCE_INLINE_ bool operator>(const RID &p_rid) const {
|
||||
return get_id() > p_rid.get_id();
|
||||
return _data > p_rid._data;
|
||||
}
|
||||
_FORCE_INLINE_ bool operator!=(const RID &p_rid) const {
|
||||
return _data != p_rid._data;
|
||||
|
Loading…
Reference in New Issue
Block a user