From c9431f34e543dc0e6bf564e4ada9574072e92918 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Feb 2023 21:47:56 +0100 Subject: convert to magnum vectors and use shorter syntax --- shaders/tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders/tile.cpp') diff --git a/shaders/tile.cpp b/shaders/tile.cpp index 9df05f8e..8d859ff3 100644 --- a/shaders/tile.cpp +++ b/shaders/tile.cpp @@ -64,7 +64,7 @@ void tile_shader::_draw() if (_tint != _real_tint) setUniform(TintUniform, _real_tint = _tint); - if (const auto offset = Vector3((float)_camera_offset[0], (float)_camera_offset[1], _depth_offset); + if (const auto offset = Vector3(Vector2(_camera_offset), _depth_offset); offset != _real_camera_offset) { _real_camera_offset = offset; -- cgit v1.2.3