mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Remove ABS in favor of Math::abs
This commit is contained in:
parent
3d9b05ad4a
commit
10f6c01b9c
68 changed files with 142 additions and 146 deletions
|
|
@ -134,7 +134,7 @@ public:
|
|||
CanvasKey(const RID &p_canvas, int p_layer, int p_sublayer) {
|
||||
canvas = p_canvas;
|
||||
int64_t sign = p_layer < 0 ? -1 : 1;
|
||||
stacking = sign * (((int64_t)ABS(p_layer)) << 32) + p_sublayer;
|
||||
stacking = sign * (((int64_t)Math::abs(p_layer)) << 32) + p_sublayer;
|
||||
}
|
||||
int get_layer() const { return stacking >> 32; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue