aboutsummaryrefslogtreecommitdiff
path: root/src/particles.cpp
diff options
context:
space:
mode:
authorVitaliy <silverunicorn2011@yandex.ru>2017-10-15 10:34:14 +0300
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-10-15 09:34:14 +0200
commit75320e7e88ab5088a46c9e42c1e789cbdacb13b0 (patch)
treeda71a3134f8b42bdabf25ef1df14c5e1a77a439e /src/particles.cpp
parent6bab695479d42ac2b051b8a35639c32b22efbf8d (diff)
downloaddragonfireclient-75320e7e88ab5088a46c9e42c1e789cbdacb13b0.tar.xz
Real global textures (#6105)
* Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal
Diffstat (limited to 'src/particles.cpp')
-rw-r--r--src/particles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/particles.cpp b/src/particles.cpp
index 053b68fff..0a6651ce4 100644
--- a/src/particles.cpp
+++ b/src/particles.cpp
@@ -598,6 +598,8 @@ void ParticleManager::addNodeParticle(IGameDef* gamedef,
float size = rand() % 64 / 512.;
float visual_size = BS * size;
+ if (tile.scale)
+ size /= tile.scale;
v2f texsize(size * 2, size * 2);
v2f texpos;
texpos.X = ((rand() % 64) / 64. - texsize.X);