mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-01 07:51:21 +00:00
Remove redundancy
This commit is contained in:
parent
f4d5040a73
commit
6384b850f1
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue