Remove redundancy

This commit is contained in:
Daniel Gibson 2012-04-22 15:57:59 +00:00
parent f4d5040a73
commit 6384b850f1

View file

@ -202,12 +202,6 @@ S_PaintChannels ( int endtime )
end = paintedtime + PAINTBUFFER_SIZE;
}
/* start any playsounds */
if ( endtime - paintedtime > PAINTBUFFER_SIZE )
{
end = paintedtime + PAINTBUFFER_SIZE;
}
/* start any playsounds */
for ( ; ; )
{
@ -258,6 +252,7 @@ S_PaintChannels ( int endtime )
for ( ; i < end; i++ )
{
// TODO: this could be done with memset
paintbuffer [ i - paintedtime ].left = paintbuffer [ i - paintedtime ].right = 0;
}
}