Simplify. Vectors are a type of EqualityComparable.
http://www.sgi.com/tech/stl/EqualityComparable.html
This commit is contained in:
@@ -644,7 +644,7 @@ bool InputMapper::CheckForChangedInputDevicesAndRemap( RString &sMessageOut )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool bJoysticksChanged = !VectorsAreEqual(vsCurrentJoysticks,vsLastSeenJoysticks);
|
bool bJoysticksChanged = vsCurrentJoysticks != vsLastSeenJoysticks;
|
||||||
if( !bJoysticksChanged )
|
if( !bJoysticksChanged )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user