From 3e3fe1af7328157c0ecd3bc99d273742e46f5358 Mon Sep 17 00:00:00 2001 From: mniip Date: Wed, 25 Dec 2013 16:07:18 +0400 Subject: [PATCH] fix VIRS's part_change_type abuse, fix http://tpt.io/.260472 --- src/simulation/elements/VIRS.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simulation/elements/VIRS.cpp b/src/simulation/elements/VIRS.cpp index 92ef22077..2d1051cfe 100644 --- a/src/simulation/elements/VIRS.cpp +++ b/src/simulation/elements/VIRS.cpp @@ -131,11 +131,11 @@ int Element_VIRS::update(UPDATE_FUNC_ARGS) else parts[r>>8].pavg[1] = 0; if (parts[r>>8].temp < 305.0f) - sim->part_change_type(r>>8,x,y,PT_VRSS); + sim->part_change_type(r>>8, x+rx, y+ry, PT_VRSS); else if (parts[r>>8].temp > 673.0f) - sim->part_change_type(r>>8,x,y,PT_VRSG); + sim->part_change_type(r>>8, x+rx, y+ry, PT_VRSG); else - sim->part_change_type(r>>8,x,y,PT_VIRS); + sim->part_change_type(r>>8, x+rx, y+ry, PT_VIRS); } rndstore = rndstore >> 5; }