1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Fix various sanitizer issues.

This commit is contained in:
Lukas Tenbrink
2025-04-28 15:20:57 +02:00
parent 1b4ed4c038
commit bfdb0f0ecf
4 changed files with 13 additions and 11 deletions

View File

@@ -4078,7 +4078,7 @@ Vector<Vector2i> TileMapLayerEditor::get_line(const TileMapLayer *p_tile_map_lay
if (sign.x == 0) {
current += Vector2(sign.y, 0);
} else {
current += Vector2(bool(current.y % 2) ^ (sign.x < 0) ? sign.x : 0, sign.y);
current += Vector2(bool(current.y % 2) != (sign.x < 0) ? sign.x : 0, sign.y);
}
err -= err_step.x;
} else {
@@ -4095,7 +4095,7 @@ Vector<Vector2i> TileMapLayerEditor::get_line(const TileMapLayer *p_tile_map_lay
if (sign.x == 0) {
current += Vector2(0, sign.y);
} else {
current += Vector2(bool(current.y % 2) ^ (sign.x < 0) ? sign.x : 0, sign.y);
current += Vector2(bool(current.y % 2) != (sign.x < 0) ? sign.x : 0, sign.y);
}
err -= err_step.y;
} else {