Giel van Schijndel
29d7c7abfd
Fix the raw win32 makefile system which got broken in r6144 and r6145:
...
* The lexers depend on the parser's headers so make sure to compile the parsers first
* Move a misplaced line-wrapping backslash in src/makefile.win32
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6153 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-14 18:28:21 +00:00
Giel van Schijndel
55aaffac40
Construct programPath from the iterators of "buf" not from a char* pointer
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6152 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-14 13:00:36 +00:00
Giel van Schijndel
077b3894b5
* aiexperience.[ch] was never written by Pumpkin/Eidos so lets not add a copyright notice claiming copyright for Eidos
...
* aiexperience.[ch] was written by Troman and included in r609
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6151 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-14 12:59:03 +00:00
Giel van Schijndel
5f5489b650
* Stuff SESSIONDESC.dwUser[1-4] in an array: SESSIONDESC.dwUserFlags\[4]
...
* Rewrite NETgetGameFlagsUnjoined such that it's not hardcoded for its `flag` parameter anymore
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6150 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-14 12:58:59 +00:00
Giel van Schijndel
e81ac54c92
Mark removeAfterNewLine as static
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6149 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-14 12:58:53 +00:00
Buginator
f914a437dd
BUG FIX:
...
Make sure to add the correct number of team widgets, instead of having to display MAX_PLAYERS amount.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6148 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-14 03:40:48 +00:00
Giel van Schijndel
0c1a577ee7
* Use GlobalAlloc and GlobalFree instead of malloc() and free() respectively
...
Do this because we cannot trust malloc()'s heaps to be intact at the time an exception handler gets called.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6146 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-13 15:41:50 +00:00
Giel van Schijndel
810fac209b
* Wrap all file lists in the automake and win32 makefiles across lines such that there's only one file on each line
...
* Alphabetically sort the file lists
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6144 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-13 13:04:37 +00:00
Giel van Schijndel
872a436895
Force using the C++ compiler as linker
...
This fixes #65
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6142 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-13 11:45:47 +00:00
Buginator
a4e9ac0e09
Fixes & closes ticket:103
...
Alliances were formed in a SP game that were not supposed to be formed as a byproduct of having game.alliance set to ALLIANCES_TEAMS in a skirmish/MP game.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6140 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-12 18:05:47 +00:00
Per Inge Mathisen
ea2dcd8b5e
Fix bug #12430 : assert in widget:1080 while modifying vehicle, reported by
...
Thomas Frauendorfer. Make us test validity of system component when changing
propulsion, and also avoid crashing if current weapon mode is invalid. Pach
reviewed by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6139 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-12 18:04:26 +00:00
Per Inge Mathisen
7d46dd0a44
Improve logging, update some comments.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6138 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-12 12:17:10 +00:00
Per Inge Mathisen
4f33dfa994
Fix bug #12400 : assert in droid.c (r6104). First issue is that we check against DROID_MAXWEAPS on
...
a structure, which has potentially one more weapon that this. Second and more serious issue is that
if a building is demolished, it will no longer be updated in regards to dead targets.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6136 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-12 09:48:52 +00:00
Per Inge Mathisen
dcc87a0973
Purely cosmetic fixes for bug #12430 : assert in widget:1080 while modifying vehicle
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6135 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-12 09:26:40 +00:00
Buginator
fd10f48279
*Changed* default FMV mode to 2x instead of full screen. (Most people play game >640x480, so FS looked pretty bad)
...
Fix FMV text to display correctly no matter screen size.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6134 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-12 03:05:40 +00:00
Buginator
4a03edafc1
Updating ChangeLog with some bug fixes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6133 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 19:21:29 +00:00
Buginator
e4a10b71bc
Since return/enter key was remapped to enable chat mode, we didn't remove this keypress from the input stream when we would save games. This resulted in the chat mode being enabled when a user saves their game.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6132 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 19:17:59 +00:00
Buginator
6a70a7750d
Changes the 'optional file not found' from LOG_WARNING to LOG_WZ, because of too much spam.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6131 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 19:15:08 +00:00
Per Inge Mathisen
36f3ec168c
From ticket #97 : Change height of some buildings so that they can fire over walls as they should. Patch by Zarel.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6130 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 15:09:35 +00:00
Freddie Witherden
aa447545b2
Outlaw the use of SDL_SetGamma (patch #83 ). This closes ticket #83 . Approved by Giel.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6129 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 10:51:53 +00:00
Freddie Witherden
89f631a6b2
Add timer.[ch] to the Xcode project. This allows Warzone to build on OS X again.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6128 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 10:22:28 +00:00
Freddie Witherden
f02f2c272a
Commit patch #52 which fixes invalid research items in multi-player. This closes ticket #52 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6127 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 10:16:00 +00:00
Buginator
768686397c
Disables stopping of the backdrop, to fix the flickering issue that some people have seen while on the loading screen.
...
Closes ticket:87
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6126 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 03:57:45 +00:00
Buginator
31b3895caf
Closes & fixes ticket:99
...
Using --nosound is handled correctly for the FMVs now.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6125 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 03:21:03 +00:00
Buginator
84002ab665
Adds a new menu option specifically for Mouse Options, and moves all options that have to do with the mouse to this menu.
...
Adds a hardware (SDL) / software (color) cursor menu option.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6124 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-11 03:06:33 +00:00
Buginator
67ca56f6b5
Slight correction, uploaded the wrong version of last patch.
...
Fixed formatting of frontend.h correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6123 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-10 20:08:16 +00:00
Buginator
0c469ea1f2
Get rid of the #define(s) in this file, and using enum instead.
...
Makes it easier to modify/change menu entries and such.
Should not affect code behavior at all.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6122 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-10 20:02:47 +00:00
Giel van Schijndel
3e1509e874
Remove the Eidos and Pumpkin "logo" videos from the "Show Intro" list. There's no need to advertise for them anymore...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6120 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-08 20:56:14 +00:00
Giel van Schijndel
d871a85964
Add video playback support:
...
* Add support for decoding and displaying of OggTheora/Vorbis videos
* Change all references to *.rpl files to *.ogg files (and lower case them)
* Add a new menu (and config) option for selecting the size at which to display videos (1x (native), 2x, full screen)
This closes ticket:64 and ticket:46
Code changes are ticket:64 (patch by Gerard Krol, Giel van Schijndel and Buginator)
FMVs can be found at http://download.gna.org/warzone/videos/sequences_ogg.zip (for now at least)
Videos encoded by Angus Lees
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6119 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-08 18:24:19 +00:00
Freddie Witherden
8573255b29
Commit patch #94 by Zarel. This gives logical names to things such as Nexus resistance circuits and repair turrets.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6118 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-07 22:31:28 +00:00
Giel van Schijndel
58117a87c0
* Remove duplicate sound effect pcv483.ogg
...
* Rename pcv483.ogg to power-transferred.ogg
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6117 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 21:49:58 +00:00
Giel van Schijndel
74038caddc
Mark some nasty piece of code for fixing
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6116 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 21:12:51 +00:00
Giel van Schijndel
d8e0d93a5d
* Initialise aHardPath at compile time to "sequences/" (the only value it was ever set to)
...
* Get rid of bCDPath and bHardPath which guarded the initialisation of aHardPath
* Remove seq_SetVideoPath which performed the initialisation of aHardPath
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6113 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 19:28:41 +00:00
Giel van Schijndel
df801f1b08
* Make seq_Play const correct
...
* Use "bool" instead of "BOOL" for the return types of lib/sequence functions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6112 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 18:45:18 +00:00
Giel van Schijndel
77d7490ed3
Move all header content of math-help.h inside its header guards
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6111 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 12:34:42 +00:00
Giel van Schijndel
a74c27019d
Make sure to #define the [SU]BYTE_(MIN|MAX) and [SU]D?WORD_(MIN|MAX) constants in terms of the U?INT(8|16|32)_(MIN|MAX) constants
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6110 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 12:09:58 +00:00
Giel van Schijndel
953a3a998b
Allow #including lib/framework/types.h without lib/framework/frame.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6109 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 12:09:53 +00:00
Buginator
4971f0cdcd
Adds a message to the console when screenshot key is hit.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6108 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 03:31:18 +00:00
Buginator
897e480258
Found 'lost' patch.
...
Fixes bug #12399
Deletes FRONTEND_NOGAMESAVAILABLE button on game refresh.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6105 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-04 03:07:29 +00:00
Buginator
3fcdd7b00f
Fixes issue with LASSAT not hitting droids.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6104 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-03 19:53:23 +00:00
Dennis Schridde
00c85bc2c8
Comparison against 0 is ... suboptimal for floats (imprecision). Compare against Epsilon instead.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6103 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-03 16:21:37 +00:00
Per Inge Mathisen
4a9c00e469
Revert tagfile changes in r6084, r6080 and r6079. Apparently not ready for the unwashed masses yet.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6102 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-02 21:50:05 +00:00
Giel van Schijndel
2c8a322504
* Don't manually maintain a line-count variable as Perl does this (I found out while reading the Camel book) automatically in the $. variable
...
* Include the filename of the currently being parsed file in error messages
* Make sure to reset Perl's line counter ($.) when we start parsing a new file (when using <> as file handle)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6101 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-01 14:53:46 +00:00
Ari Johnson
9ba4510a7c
Automatically copy Theora framework into .app bundle
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6100 4a71c877-e1ca-e34f-864e-861f7616d084
2008-10-01 02:37:02 +00:00
Freddie Witherden
31c5bf6f47
Commit patch #79 which improves the accuracy of the lassat and reduces the delay-time. Patch by Zarel.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6099 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-29 22:00:40 +00:00
Freddie Witherden
0d8a416f7f
Eliminate the use of FindFolder on OS X, which was deprecated in 10.4, in favour of FSFindFolder.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6098 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-29 20:00:25 +00:00
Freddie Witherden
4a16da1eba
Fix Theora.framework linker errors under OS X.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6097 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-29 18:41:37 +00:00
Freddie Witherden
a36f4d4570
Make sure we copy Theora.framework into the Warzone.app bundle.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6096 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-29 17:51:57 +00:00
Freddie Witherden
7be01a4456
Make sure to export the Theora headers in the Xcode project.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6095 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-28 19:04:35 +00:00
Giel van Schijndel
73f4744912
Move the version checks for pkg-config, xgettext and msgfmt out of autogen.sh and into configure.ac
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6093 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-28 17:35:56 +00:00