Fix gravmap build up during repeated frame stepping

This commit is contained in:
jacksonmj 2011-06-17 00:58:08 +01:00 committed by Simon Robertshaw
parent ad99287f8a
commit fb79865186
2 changed files with 5 additions and 4 deletions

View File

@ -1831,6 +1831,11 @@ int main(int argc, char *argv[])
if (!sys_pause||framerender) //Only update if not paused
memset(gravmap, 0, sizeof(gravmap)); //Clear the old gravmap
if (framerender) {
framerender = 0;
sys_pause = 1;
}
if (cmode==CM_PERS)
{
if (!fire_fc)//fire_fc has nothing to do with fire... it is a counter for diminishing persistent view every 3 frames

View File

@ -2167,10 +2167,6 @@ killed:
movedone:
continue;
}
if (framerender) {
framerender = 0;
sys_pause = 1;
}
}
void update_particles(pixel *vid)//doesn't update the particles themselves, but some other things