UFO:Alien Invasion

Archive => Bugs prior to release 2.3 => Topic started by: ROD on March 11, 2010, 07:21:23 pm

Title: Some troubles with compiling [SOLVED]
Post by: ROD on March 11, 2010, 07:21:23 pm
Hi guys. I have some problems with compiling game.

compiler say me this text:

Quote
src/client/campaign/cp_campaign.c: In function ‘CL_HandleNationData’:
src/client/campaign/cp_campaign.c:397: error: expected ‘;’ before ‘)’ token
src/client/campaign/cp_campaign.c:397: error: expected statement before ‘)’ token

Any ideas?


P.S.
Sorry for my English.
Title: Re: Some troubles with compiling
Post by: ROD on March 11, 2010, 07:34:13 pm
hm, i think i found solve

in string 397 of file src/client/campaign/cp_campaign.c i found this misprint:

   
Quote
performance = ((civilianWeight * civilianRatio + alienWeight * alienRatio) - 0.5 * (civilianRatio + alienRatio)) / 0.5 * (civilianRatio + alienRatio));

last bracket is extra
Title: Re: Some troubles with compiling [SOLVED]
Post by: Duke on March 11, 2010, 10:03:38 pm
Committed to svn r28904.
Thx for reporting :)