openbsd-ports/games/warzone2100/patches/patch-lib_sequence_sequence_c
dcoppa ad6e122328 Bugfix update to warzone2100-2.3.7.
From Brad. Tested by me.
2011-03-13 10:26:26 +00:00

13 lines
414 B
Plaintext

$OpenBSD: patch-lib_sequence_sequence_c,v 1.2 2011/03/13 10:26:26 dcoppa Exp $
--- lib/sequence/sequence.c.orig Fri Jan 21 15:52:01 2011
+++ lib/sequence/sequence.c Sat Jan 29 21:18:37 2011
@@ -756,7 +756,7 @@ bool seq_Update()
{
for (j = 0; j < videodata.vi.channels; j++)
{
- int val = nearbyint(pcm[j][i] * 32767.f);
+ int val = rint(pcm[j][i] * 32767.f);
if (val > 32767)
{