FreeBSD Bugzilla – Attachment 201707 Details for
Bug 235479
games/liquidwar: Does not build with Allegro 4.4.3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
liquidwar.diff
liquidwar.diff (text/plain), 4.12 KB, created by
Tobias Kortkamp
on 2019-02-04 07:03:05 UTC
(
hide
)
Description:
liquidwar.diff
Filename:
MIME Type:
Creator:
Tobias Kortkamp
Created:
2019-02-04 07:03:05 UTC
Size:
4.12 KB
patch
obsolete
>Index: games/liquidwar/files/patch-src_distor.c >=================================================================== >--- games/liquidwar/files/patch-src_distor.c (nonexistent) >+++ games/liquidwar/files/patch-src_distor.c (working copy) >@@ -0,0 +1,31 @@ >+--- src/distor.c.orig 2007-10-17 20:00:50 UTC >++++ src/distor.c >+@@ -194,7 +194,7 @@ create_wave_line (int *buffer, >+ cycle_tmp /= 2; >+ speed--; >+ } >+- cycle_tmp = fsqrt (fsqrt (cycle_tmp)) / 2; >++ cycle_tmp = fixsqrt (fixsqrt (cycle_tmp)) / 2; >+ cycle_tmp /= SCREEN_W; >+ cycle_tmp *= period; >+ if (cycle_tmp <= 0) >+@@ -203,8 +203,8 @@ create_wave_line (int *buffer, >+ } >+ cycle_coef = sens * 256 * (itofix (GLOBAL_TICKER % cycle_tmp) / cycle_tmp); >+ >+- f0 = fsin (cycle_coef + freq_coef * period2); >+- fp0x0 = (PI_1024 * fcos (cycle_coef + freq_coef * period2)) / 1024; >++ f0 = fixsin (cycle_coef + freq_coef * period2); >++ fp0x0 = (PI_1024 * fixcos (cycle_coef + freq_coef * period2)) / 1024; >+ >+ alphax03 = (ampli_cst / 256) * ((fp0x0 - 2 * f0) / 256); >+ betax02 = (ampli_cst / 256) * ((-fp0x0 + 3 * f0) / 256); >+@@ -217,7 +217,7 @@ create_wave_line (int *buffer, >+ } >+ for (i = period2; i < real_length - period2; ++i) >+ { >+- temp = ((ampli_cos) / 256) * (fcos (cycle_coef + freq_coef * i) / 256); >++ temp = ((ampli_cos) / 256) * (fixcos (cycle_coef + freq_coef * i) / 256); >+ buffer2[i] = temp / WAVE_SIZE_SCALE; >+ } >+ > >Property changes on: games/liquidwar/files/patch-src_distor.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: games/liquidwar/files/patch-src_fighter.c >=================================================================== >--- games/liquidwar/files/patch-src_fighter.c (nonexistent) >+++ games/liquidwar/files/patch-src_fighter.c (working copy) >@@ -0,0 +1,29 @@ >+--- src/fighter.c.orig 2019-02-04 06:28:53 UTC >++++ src/fighter.c >+@@ -335,7 +335,7 @@ move_fighters (void) >+ coef += 256; >+ >+ attack[i] = (coef * >+- fsqrt (fsqrt (1 << (LW_CONFIG_CURRENT_RULES.fighter_attack >++ fixsqrt (fixsqrt (1 << (LW_CONFIG_CURRENT_RULES.fighter_attack >+ + cpu_influence[i])))) / (256 * 8); >+ if (attack[i] >= MAX_FIGHTER_HEALTH) >+ attack[i] = MAX_FIGHTER_HEALTH - 1; >+@@ -343,7 +343,7 @@ move_fighters (void) >+ attack[i] = 1; >+ >+ defense[i] = (coef * >+- fsqrt (fsqrt >++ fixsqrt (fixsqrt >+ (1 << >+ (LW_CONFIG_CURRENT_RULES.fighter_defense + >+ cpu_influence[i])))) / (256 * 256); >+@@ -353,7 +353,7 @@ move_fighters (void) >+ defense[i] = 1; >+ >+ new_health[i] = (coef * >+- fsqrt (fsqrt >++ fixsqrt (fixsqrt >+ (1 << >+ (LW_CONFIG_CURRENT_RULES.fighter_new_health + >+ cpu_influence[i])))) / (256 * 4); > >Property changes on: games/liquidwar/files/patch-src_fighter.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: games/liquidwar/files/patch-src_palette.c >=================================================================== >--- games/liquidwar/files/patch-src_palette.c (nonexistent) >+++ games/liquidwar/files/patch-src_palette.c (working copy) >@@ -0,0 +1,11 @@ >+--- src/palette.c.orig 2019-02-04 06:29:30 UTC >++++ src/palette.c >+@@ -88,7 +88,7 @@ sqrt255 (int i) >+ { >+ int result; >+ >+- result = fsqrt (i * 256) / 256; >++ result = fixsqrt (i * 256) / 256; >+ if (result > 255) >+ result = 255; >+ > >Property changes on: games/liquidwar/files/patch-src_palette.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
tobik
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 235479
: 201707