Skip to content

Commit

Permalink
fix VIBR asymmetric heat releasing, fixes #424
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Jun 12, 2017
1 parent 510c33a commit 32d834c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/elements/VIBR.cpp
Expand Up @@ -97,8 +97,8 @@ int Element_VIBR::update(UPDATE_FUNC_ARGS) {
//Release all heat
if (parts[i].life < 500)
{
rx = rndstore%7-1;
ry = (rndstore>>3)%7-1;
rx = rndstore%7-3;
ry = (rndstore>>3)%7-3;
if(BOUNDS_CHECK)
{
r = pmap[y+ry][x+rx];
Expand Down

0 comments on commit 32d834c

Please sign in to comment.