summary refs log tree commit diff
path: root/src/GameDraw.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-08-24 04:21:46 +0900
committerNguyễn Gia Phong <cnx@loang.net>2023-08-24 04:30:20 +0900
commitefd25d51cdd7a9cadda1c0f6983905fc17545f14 (patch)
tree8dea973669d8dfe4e7209c9f419bf8cbbf483323 /src/GameDraw.cpp
parent2598835c54a3869a477d287d2845bbe42790a359 (diff)
downloadblackshades-2.5.1.tar.gz
Fix decal fading animation 2.5.1
Also fix missing decal regression.

Fixes: 48417e11854f8 ("Make XYZ C-compatible")
Diffstat (limited to 'src/GameDraw.cpp')
-rw-r--r--src/GameDraw.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/GameDraw.cpp b/src/GameDraw.cpp
index 911e9ea..b97f814 100644
--- a/src/GameDraw.cpp
+++ b/src/GameDraw.cpp
@@ -2,7 +2,7 @@
 // Copyright (C) 2002  David Rosen
 // Copyright (C) 2003  Ryan C. Gordon
 // Copyright (C) 2003  Steven Fuller
-// Copyright (C) 2021  Nguyễn Gia Phong
+// Copyright (C) 2021, 2023  Nguyễn Gia Phong
 //
 // This file is part of Black Shades.
 //
@@ -519,8 +519,7 @@ void Game::DrawGLScene(void)
 			}
 		}
 
-		// Decals
-		decals.draw();
+		drawDecals(&decals);
 
 		// Occluding blocks
 		beginx=(camera.position.x+block_spacing/2)/block_spacing-2;