From 426d73bf550d24a24b0820968e4af01c466280a7 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 26 Jun 2025 21:35:07 +0300 Subject: Add fixes --- src/game/editor/layer_tiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/editor/layer_tiles.cpp b/src/game/editor/layer_tiles.cpp index 032f391f..b692c1f0 100644 --- a/src/game/editor/layer_tiles.cpp +++ b/src/game/editor/layer_tiles.cpp @@ -248,7 +248,7 @@ void CLayerTiles::BrushFlipY() void CLayerTiles::BrushRotate(float Amount) { - int Rotation = (round(360.0f*Amount/(pi*2))/90)%4; // 0=0°, 1=90°, 2=180°, 3=270° + int Rotation = ((int)round(360.0f*Amount/(pi*2))/90)%4; // 0=0°, 1=90°, 2=180°, 3=270° if(Rotation < 0) Rotation +=4; -- cgit 1.4.1