about summary refs log tree commit diff
path: root/src/game/editor/layer_tiles.cpp
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-06-26 21:35:07 +0300
committerNakidai <nakidai@disroot.org>2025-06-26 21:35:07 +0300
commit426d73bf550d24a24b0820968e4af01c466280a7 (patch)
tree00707bc4c557085d5e28f708256146eb95d5429e /src/game/editor/layer_tiles.cpp
parent5edca2a937e40ac77e565adc4ccbf224c4967b00 (diff)
downloadzcatch-zCatch.tar.gz
zcatch-zCatch.zip
Add fixes HEAD zCatch master
Diffstat (limited to 'src/game/editor/layer_tiles.cpp')
-rw-r--r--src/game/editor/layer_tiles.cpp2
1 files changed, 1 insertions, 1 deletions
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;