Fix gravmap build up during repeated frame stepping
This commit is contained in:
parent
ad99287f8a
commit
fb79865186
@ -1831,6 +1831,11 @@ int main(int argc, char *argv[])
|
|||||||
if (!sys_pause||framerender) //Only update if not paused
|
if (!sys_pause||framerender) //Only update if not paused
|
||||||
memset(gravmap, 0, sizeof(gravmap)); //Clear the old gravmap
|
memset(gravmap, 0, sizeof(gravmap)); //Clear the old gravmap
|
||||||
|
|
||||||
|
if (framerender) {
|
||||||
|
framerender = 0;
|
||||||
|
sys_pause = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (cmode==CM_PERS)
|
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
|
if (!fire_fc)//fire_fc has nothing to do with fire... it is a counter for diminishing persistent view every 3 frames
|
||||||
|
@ -2167,10 +2167,6 @@ killed:
|
|||||||
movedone:
|
movedone:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (framerender) {
|
|
||||||
framerender = 0;
|
|
||||||
sys_pause = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_particles(pixel *vid)//doesn't update the particles themselves, but some other things
|
void update_particles(pixel *vid)//doesn't update the particles themselves, but some other things
|
||||||
|
Loading…
Reference in New Issue
Block a user