mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Remove the _cmp metamethod from the entity types because it's useless for registered types.
This commit is contained in:
@ -47,23 +47,6 @@ CVehicle::~CVehicle()
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Int32 CVehicle::Cmp(const CVehicle & o) const
|
||||
{
|
||||
if (m_ID == o.m_ID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if (m_ID > o.m_ID)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const String & CVehicle::ToString() const
|
||||
{
|
||||
@ -1763,7 +1746,6 @@ void Register_CVehicle(HSQUIRRELVM vm)
|
||||
Class< CVehicle, NoConstructor< CVehicle > >(vm, Typename::Str)
|
||||
// Meta-methods
|
||||
.SquirrelFunc(_SC("_typename"), &Typename::Fn)
|
||||
.Func(_SC("_cmp"), &CVehicle::Cmp)
|
||||
.Func(_SC("_tostring"), &CVehicle::ToString)
|
||||
// Static Values
|
||||
.SetStaticValue(_SC("MaxID"), CVehicle::Max)
|
||||
|
Reference in New Issue
Block a user