diff options
Diffstat (limited to 'src/client/clientobject.h')
-rw-r--r-- | src/client/clientobject.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/clientobject.h b/src/client/clientobject.h index 9377d1e67..5e34177e4 100644 --- a/src/client/clientobject.h +++ b/src/client/clientobject.h @@ -90,10 +90,10 @@ private: static std::unordered_map<u16, Factory> m_types; }; -struct DistanceSortedActiveObject +class DistanceSortedActiveObject { +public: ClientActiveObject *obj; - f32 d; DistanceSortedActiveObject(ClientActiveObject *a_obj, f32 a_d) { @@ -105,4 +105,7 @@ struct DistanceSortedActiveObject { return d < other.d; } + +private: + f32 d; }; |