mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
Use memset() instead of array magic
This commit is contained in:
parent
272b897919
commit
15400b2133
1 changed files with 2 additions and 3 deletions
|
@ -254,9 +254,8 @@ S_PaintChannels(int endtime)
|
||||||
|
|
||||||
for ( ; i < end; i++)
|
for ( ; i < end; i++)
|
||||||
{
|
{
|
||||||
/* TODO: this could be done with memset */
|
memset(&paintbuffer[i - paintedtime], 0,
|
||||||
paintbuffer[i - paintedtime].left =
|
sizeof(paintbuffer[i - paintedtime]));
|
||||||
paintbuffer[i - paintedtime].right = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue