summaryrefslogtreecommitdiff
path: root/core/templates
diff options
context:
space:
mode:
authorsygi <sygnowski@gmail.com>2021-03-26 17:39:05 +0000
committersygi <sygnowski@gmail.com>2021-07-02 20:50:27 +0100
commit6f3e7f7cb051be498df7b0b4a4959d30fc27dad3 (patch)
tree49802b2404058e83bf4fec8875996eb8f24c6ae0 /core/templates
parenta82765a46477209dad1eeb466d593d592167060a (diff)
Add mouse_shape_entered and mouse_shape_exited signals to CollisionObject2D.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/pair.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/templates/pair.h b/core/templates/pair.h
index bc1a764694..658a65c826 100644
--- a/core/templates/pair.h
+++ b/core/templates/pair.h
@@ -60,7 +60,10 @@ bool operator!=(const Pair<F, S> &pair, const Pair<F, S> &other) {
template <class F, class S>
struct PairSort {
bool operator()(const Pair<F, S> &A, const Pair<F, S> &B) const {
- return A.first < B.first;
+ if (A.first != B.first) {
+ return A.first < B.first;
+ }
+ return A.second < B.second;
}
};