diff options
| author | jacob1 <jfu614@gmail.com> | 2013-07-13 16:06:43 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-07-13 16:06:43 (GMT) |
| commit | 864f0e6f4528e9cf4ecf225dd655c29a77de171e (patch) | |
| tree | b0a9ec1f8bccca857e00f8f7c1a017f20852dd2e /src/simulation/Simulation.cpp | |
| parent | 34db317e446b918d5e388f9b01e64704e2cf9f31 (diff) | |
| download | powder-864f0e6f4528e9cf4ecf225dd655c29a77de171e.zip powder-864f0e6f4528e9cf4ecf225dd655c29a77de171e.tar.gz | |
WIFI lines aren't drawn in persistent mode, and are based on current temp, not tmp, so they work when paused
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 90b4d81..c26d17c 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -4603,8 +4603,7 @@ int Simulation::GetParticleType(std::string type) void Simulation::update_particles()//doesn't update the particles themselves, but some other things { - int i, j, x, y, t, nx, ny, r, cr,cg,cb, l = -1; - float lx, ly; + int i, x, y, t; int lastPartUsed = 0; int lastPartUnused = -1; #ifdef MT @@ -4708,30 +4707,6 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu if(framerender) framerender--; - // this should probably be elsewhere - /*for (y=0; y<YRES/CELL; y++) - for (x=0; x<XRES/CELL; x++) - if (bmap[y][x]==WL_STREAM) - { - lx = x*CELL + CELL*0.5f; - ly = y*CELL + CELL*0.5f; - for (t=0; t<1024; t++) - { - nx = (int)(lx+0.5f); - ny = (int)(ly+0.5f); - if (nx<0 || nx>=XRES || ny<0 || ny>=YRES) - break; - addpixel(vid, nx, ny, 255, 255, 255, 64); - i = nx/CELL; - j = ny/CELL; - lx += vx[j][i]*0.125f; - ly += vy[j][i]*0.125f; - if (bmap[j][i]==WL_STREAM && i!=x && j!=y) - break; - } - drawtext(vid, x*CELL, y*CELL-2, "\x8D", 255, 255, 255, 128); - } -*/ } Simulation::~Simulation() |
