Commit Graph

1229 Commits (39fe5d354459f7d793271d1eda306c0e0a14f3d6)

Author SHA1 Message Date
Dennis Schridde b1c7773299 Patches by Charon, slightly modified:
- *WarzoneKeyNumeric definition changed to SDWORD
- Report wrong tracknumbers to LOG_SOUND and don't crash in sound_Play*DTrack
- Correct --help text
- Make console backlog key configurable


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@810 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 21:05:31 +00:00
Dennis Schridde ec44ab5e7d - Fix last commit (setDrawShadows() was undeclared, because I forgot to include a header).
- Also change --(no)sound to just set war_setSoundEnabled() and store the config in configuration.c instead.
- resolution config value has been changed to width and height (easier to parse). I probably forgot to tell that I changed the --viewport cl option to --resolution, which should be more clear to non programmers.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@809 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 20:49:49 +00:00
Dennis Schridde 67056c8d24 - Droped a lot of (nearly) unused types from lib/framework/types.h
- Remove lots of unused functions (Windows/DDraw related)
- Now store the used bitdepth in the config and thus make it configurable without having to modify the sourcecode


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@808 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 01:11:26 +00:00
Dennis Schridde d3cd44148d Patch by Gerard Krol: Replace STRING with char (STRING was confusingly defined to char)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@804 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-03 21:35:50 +00:00
Roman C de058ca669 Patch by Gerard Krol: misc
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@803 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-02 20:55:19 +00:00
Roman C 3ea3f99f73 Patch by Gerard Krol: lesswarnings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@802 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-02 20:15:08 +00:00
Roman C 727ed6641c Patch by Gerard Krol: warnings changes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@801 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-02 19:33:46 +00:00
Roman C 6617c2f400 Patch by Gerard Krol: warnings casts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@800 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-02 19:26:55 +00:00
Roman C 2f2015340c -added script callback to process key inputs from within scripts
-added in-game debug window (mostly for scripting debugging purposes, something like a watch window)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@799 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-01 13:56:23 +00:00
Dennis Schridde 39ff5cc515 Make lots of __inline, _inline, FUNCINLINE and whatnot static inline. See bug#7591.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@798 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-31 20:22:01 +00:00
Roman C 9be9d21e09 -automatic target assignment will now give low priority to half-built structures when looking for a target (structures getting full HP upon construction begin was an exploit against unit AI)
-fixed line endings in macro.h
-applied Christian Ohm's "032 - Fixes for src-aiexperience.c-h" and "037 - g++ fix" patches
-made warzone report loading of all *.lev files

Scripting:
-fixed implicit bool/int to string convertion for the scripting language
-STRUCTURESTAT can now be checked for being 0 with NULLSTRUCTURESTAT
-minor scripting function fixes

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@794 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-24 13:05:40 +00:00
Roman C 4b0ed1be22 Improved droid target selection code, now uses weighted function for target selection.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@789 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-13 10:33:19 +00:00
Dennis Schridde a07ae17982 Quick fix for float truncation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@788 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-10 09:58:14 +00:00
Dennis Schridde 5a4a9288b0 Patch by Christian Ohm: Gamma controls
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@786 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-09 19:22:24 +00:00
Dennis Schridde b1b8d3ad4d Remove not used (commented out) non TCP/IP networking from connection screen.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@784 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-09 18:57:18 +00:00
Roman C f4bf18e390 -Re-enabled some debug keys and disabled unused ones
-Skirmish in-game menu (Numpad-Enter) now shows number of player units and player power instead of ping and number of played games when using debug build and in-game debug mode is on

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@782 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-09 15:33:50 +00:00
Roman C 0aeea43f15 Changed scripting functions to use british spelling of "color"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@781 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-08 14:08:53 +00:00
Roman C e2de834b13 -1.10 AI doesn't build flamer bunkers in the base anymore
-It is now possible to win in a team in 'Locked Alliances' mode, also in this mode a player doesn't lose until all of his team members were defeated
-Game now shows a text message when player has won/lost the game (just a temporary solution to bug #7317)
-Added extra heap debug, should be there at least until we fix bug #6530, as PTRVALID() doesn't seem to detect corrupted DROID pointers on win
-Increased number of iterations A* is allowed to do per frame, which will hopefully speed up pathfinding
-Fixed multiplayer menu slider bug (bug #6529)
-Fixed players not forwarding enemy units visibility to their allies in 'TEAMPLAY' and 'Locked Alliances' modes
-Further scripting engine improvements

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@780 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-08 08:06:46 +00:00
Dennis Schridde 759a6f5d02 Fix for r776.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@778 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-08 00:05:24 +00:00
Dennis Schridde d163be853d Christian Ohm's PSX removal part 1.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@777 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-07 16:40:18 +00:00
Dennis Schridde 4ea12897a5 - Replaced all filenames (I could find) with their lowercase and platform independed notation. There might be some uppercase filenames left in the sourcecode.
- Because savegame filenames are converted to lowercase old savegames won't work anymore. You can simply fix that by renaming them to lowercase.
- All unix_path, unix_fopen and PHYSFSEXT_locateCorectCase functions and calls to them have been removed. (So you _will_ notice when a file is not found, at least on Unix systems.)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@776 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-07 14:13:47 +00:00
Roman C 7f143b5a48 New script callbacks are called delayed now, since there was a problem when forming alliance.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@775 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-04 02:54:24 +00:00
Dennis Schridde 71fe0318c8 Fix broken non debug compilation. (bug#7278)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@774 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-03 01:38:18 +00:00
Roman C aa25866177 -Fixed AIs getting renamed when changing player number in MP games.
-Prevented NETbcast() from flooding the log in games with no network communication.
-orderDroidObj() scripting function will no longer cause ASSERT when DORDER_DROIDPERAIR is passed as parameter.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@773 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-02 17:58:10 +00:00
Roman C b7627bd9c8 Minor cleanup: replaced VOID with void.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@772 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-30 23:57:38 +00:00
Roman C e34c09439c -New script callbacks
-Added ability to rename players through scripts
-New savegame version: 34 (as a result of the previous point)
-Fixed double messages in online games
-Minor cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@771 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-30 23:09:12 +00:00
Roman C 01259aaab9 -fixed and enabled shared ally vision for TEAMPLAY and 'Locked Teams' modes
-fixed disabled players allying their team members
-reenabled God Mode (Ctrl-G) for Debug builds and campaign mode

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@769 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-28 02:11:19 +00:00
Roman C f969666097 Testing commit
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@767 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-27 21:23:31 +00:00
Roman C 4d8091f180 Testing commit
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@766 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-27 21:17:28 +00:00
Roman C ab31cd4fde Last player cannot be disabled in skirmish menu anymore.
Fixed disabled AIs showing up in the game.
(r763 related fixes)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@765 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-27 05:38:51 +00:00
Roman C 9aaae50baa Replaced 'Humans vs AIs' with 'Locked Teams' alliance mode.
Fixed difficulty slider applying settings to the wrong players.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@763 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-26 18:14:05 +00:00
Dennis Schridde eca1bc76ed Fix up r749 for Mac.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@758 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-25 16:17:38 +00:00
Stefan Huehner c74f654310 Make two structures static and add some const
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@757 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-24 19:18:19 +00:00
Stefan Huehner 30f6dc392e mark some Strings an read-only by adding const.
On the way replace STRING with char



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@756 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-24 19:11:34 +00:00
Stefan Huehner 65e820b246 Add some more missing includes:
seqdisp.c, gtime.c: SDL/SDL_timer.h for SDL_GetTicks()
piesraw.c:          SDL/SDL_video.h for SDL_GL_GetProcAddress()



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@753 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-23 18:52:52 +00:00
Stefan Huehner 04d0181777 Include input.h for SetMousePos, mouseX, mouseY prototypes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@752 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-23 18:42:35 +00:00
Stefan Huehner b3e3d17b82 Include frameresource.h directly in its users. Fixup after
the big cleanup in 748:749.




git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@750 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-23 18:38:12 +00:00
Dennis Schridde 3261a09baf BIG cleanup of headers.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@749 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-23 17:24:55 +00:00
Dennis Schridde 912cf2c8e2 Partially revert r739.
SDL < 1.2.10 doesn't define the string function wrappers.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@747 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-23 14:56:18 +00:00
Roman C 741250cef3 -Added "Humans vs AIs" alliance mode: Humans and AIs make 2 teams, alliances cannot be created or broken
-Added now frontend texture to frend.img
-Disabled "Allied players send vision to each other automatically (only once)" for "Allow alliances" alliance mode, since (x allied y) is not a transitive relation in this mode

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@744 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-21 20:42:48 +00:00
Stefan Huehner 1bd660ca36 mark readonly string parameter as const. Remove superflous
protoype in keymap.c as the prototype from keymap.h is included.
Remove 2 commented out prototypes in keymap.h



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@742 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-20 20:58:13 +00:00
Stefan Huehner bf2f8c5e8e Remove an unnecessary and wrong cast.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@741 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-20 20:50:29 +00:00
Dennis Schridde 915ef314df Fix last commit (check pointer against NULL is probably more clear than implicitly converting it to bool).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@740 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-20 19:52:06 +00:00
Dennis Schridde d39f787caf - Enforce floats in several places
- Define WORD and BYTE types to SDL types
- Let SDL handle some more of the win32fixes


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@739 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-20 19:46:33 +00:00
Stefan Huehner ae8467e580 Make more functions static.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@737 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-20 15:18:37 +00:00
Dennis Schridde f4be2a7f37 Patch by Christian Ohm: "g++ unbreakage"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@736 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-20 08:16:11 +00:00
Stefan Huehner 5215f1ab44 Make more functions static.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@735 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-20 01:12:13 +00:00
Stefan Huehner ac7da134bd Make more functions static which aren't used outside their
declaring source files.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@734 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-20 00:49:20 +00:00
Roman C 15b02fe669 Fixed script compilation bugs,
further scripting enhancements.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@729 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-19 16:07:06 +00:00
Dennis Schridde d889ce9da7 Patch by Christian Ohm: "g++ fixes"
Mainly explicit casts, some type changes, a few fixes.

We need to have a look if this line creates any problems:
lib/script/interp.c @@ -329,7 +329,7 @@
- if(!RetStackRemember(CurEvent, (ip + 2)))       //Remember where to jump back later
+ if(!RetStackRemember(CurEvent, *(ip + 2)))      //Remember where to jump back later


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@719 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-17 20:39:25 +00:00
Dennis Schridde 876ab9a3ba Patch by Stefan Huehner: "code cleanup: static 3, 3a"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@712 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-14 16:30:07 +00:00
Dennis Schridde 0ebbf5f1db Patch by Stefan Huehner: "code cleanup: static 2"
Mark some more function as static.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@711 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-14 13:15:40 +00:00
Dennis Schridde 27b07a0ba1 Patch by Stefan Huehner: "code cleanup: const 2"
Patch marks several read-only function parameters and datastructures as such by adding const.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@709 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-13 21:16:17 +00:00
Dennis Schridde 7e8990c661 Patch by Stefan Huehner: "code cleanup: static"
Patch marks several function & datastructures without prototypes, which aren't used outside their declaring sourcefiles as static.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@708 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-13 21:14:47 +00:00
Dennis Schridde fc4ce66939 Patch "code cleanup: void 2" by Stefan Huehner
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@705 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-13 12:58:32 +00:00
Dennis Schridde 7d0d4faa49 Patch "code cleanup: void 3" by Stefan Huehner
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@704 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-13 10:54:35 +00:00
Dennis Schridde 728b9a9913 - Commit patches "code cleanup: void" and "code cleanup: const" by Stefan Huehner
- Replace every occurence of VOID with void (and LPVOID with void*)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@703 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-13 09:09:05 +00:00
Dennis Schridde fe1a94f6dc - Mark possibly breaking assignments
- Don't declare stdint declarations which are allready declared in SDL_config
- Change only use of stdint type to use SDL type instead

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@700 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-08 20:05:38 +00:00
Dennis Schridde fad48ad4f8 Fix multiple definitions of the MAX macro.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@699 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-08 20:03:55 +00:00
Dennis Schridde 78be6bc2bc Fix double to float assignments by forcing fixed numbers to float.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@698 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-08 20:02:49 +00:00
Dennis Schridde dcd97ac079 Use ASCII version of functions for Windows instead of UNICODE versions.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@697 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-08 20:01:09 +00:00
Dennis Schridde e057d6240c Finalize VIDEO_QUIT callback fix on request of Troman.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@688 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-06 17:19:20 +00:00
Roman C 96f59fbb50 Fix to #6735 and #6751,
also fixes some beacon-related code

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@687 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-06 16:58:20 +00:00
Per Inge Mathisen 5396324fb6 Remove lots of unused graphics code. (Did the Pumpkin guys EVER delete code?)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@686 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-03 21:33:29 +00:00
Dennis Schridde 2208c79ea4 Fix sound init reporting "Sound disabled!" even when sound was enabled.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@683 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-03 20:29:54 +00:00
Dennis Schridde 1607f7e194 - --(no)sound toggles sound initialization (to explicitly disable sound)
- --(no)shadows toggles shadows (instead of --shadows yes/no)
- Removed unused functions from warzoneconfig


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@680 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-03 12:41:55 +00:00
Per Inge Mathisen de5553bd9f Fix bug #6840, assert failure when pressing 'Edit' button in the
options dialog (ctrl+o), by removing the button when not #define
EDIT_OPTIONS, since it does not do anything other than cause 
crashes at the moment.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@679 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-03 12:01:14 +00:00
Per Inge Mathisen b37fd5d62f Make some code more readable
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@678 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-03 11:22:51 +00:00
Per Inge Mathisen 72be7c92b5 Fix assertion failure when editing keys
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@677 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-03 10:06:51 +00:00
Per Inge Mathisen b7b01e70b6 Remove some dead code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@675 4a71c877-e1ca-e34f-864e-861f7616d084
2006-09-01 21:01:17 +00:00
Dennis Schridde 2c460e920b - Remove all references to DBP0()
- Add Irrlicht evaluation to TODO


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@673 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-31 20:14:21 +00:00
Per Inge Mathisen f879573c3f Enable droid scaling code again, but no keys available for it, so you have
to edit the keymap code yourself to see it. New cheat code, "count me",
prints the number of objects in the game.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@671 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-30 21:51:04 +00:00
Per Inge Mathisen d483c052b2 Add basic map editing functions. When in cheat mode, you can use 'w' and 'a' to
raise and lower tile height, and use 'k' to flip tiles. You must trash your
keymap again before you can use this.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@667 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-30 21:12:44 +00:00
Dennis Schridde fc147e9bd6 Add a --shadow toggle to commandline options to enable or disable shadows. Patch by Suprano.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@666 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-30 19:31:50 +00:00
Roman C 63303fa4e2 Fix: should compile under linux now
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@665 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-30 17:41:39 +00:00
Roman C d10c3bb0bd Ctrl+MouseWheel makes game speed up or slow down,
Using mouse wheel over radar makes radar zoom in/out, 
Added ability to put beacons using the radar, 
Tweaked beacon placement coordinates.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@664 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-30 17:02:58 +00:00
Per Inge Mathisen 0aea40e84b Remove some dead code, and silence some warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@663 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-30 15:06:49 +00:00
Dennis Schridde a18890b6dd Quick fix for http://wz.rootzilla.de/forum/index.php?topic=62.0
Troman, please revise this!

Do we need to (and can) call something similar to eventFireCallbackTrigger((TRIGGER_TYPE)CALL_VIDEO_QUIT); to notify scripts that the video has ended? (eventFireCallbackTrigger() can't be called here because we are called from a trigger.)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@662 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-29 19:57:34 +00:00
Dennis Schridde d635b5c013 Fif unitialized value reported in bug #6781.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@659 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-29 16:07:56 +00:00
Dennis Schridde 0b527d49e2 Fix compile stoper from r649.
Ari: Please have a look at this! If this is wrong fix it please.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@657 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-27 20:32:40 +00:00
Dennis Schridde 76b6d70f6d Remove any occurences of GetTickCount() (a Windows function) with SDL_GetTicks() which was used on non MSVC anyway.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@656 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-27 19:09:35 +00:00
Dennis Schridde 7f3693b592 Revised framecounting to give correct results and use more informative names.
Also removed some unused framecounting functions.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@655 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-27 19:01:34 +00:00
Roman C c1c801383e Fixed compilation on GCC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@650 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 20:51:54 +00:00
Ari Johnson 9e2d33420f Endianness fixes for saved games
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@649 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 18:36:19 +00:00
Roman C c3eae9e73f Fixed bug #6753 ,
Define DEBUG_SCRIPT to get some more Bison/Flex debug output

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@648 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 17:14:04 +00:00
Roman C a9a74444a1 Added beacons for skirmish and multiplayer, default key combination: Alt+H.
Allied players send vision to each other automatically (only once)
Fixed caching problems for variables of type GROUP
Some other scripting engine updates and cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@647 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 15:50:47 +00:00
Dennis Schridde e117a62324 Use autoconf's config.h instead of an own version.c hack.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@638 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 22:27:26 +00:00
Dennis Schridde fde163d9fe - Change << shifting from TILE_UNITS (bigger than size of shifted type) to TILE_SHIFT
- Cleanup debug.h


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@632 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 21:27:48 +00:00
Dennis Schridde 4208601a38 - Fix string stack reset for scripts
- Clean warnings and a wrapper function for widgets
- Add an assert to intDisplayMessageButton to catch crashes better


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@631 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 20:38:27 +00:00
Per Inge Mathisen c30b0a8784 Remove some dead code and fix two warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@630 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 16:58:49 +00:00
Dennis Schridde 9f5c1367aa Fix scanDataDirs to search in the correct path
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@629 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 15:47:53 +00:00
Dennis Schridde b908d81077 Windows had that problem with the missing dirSeperator before WZ_WRITEDIR, too.
Thus appending dirSeperator on Mac and Windows instead of hardcoding it to WZ_WRITEDIR, because PhysFS calls that unsafe on Windows and refuses to create such a dir.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@627 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 10:08:55 +00:00
Ari Johnson 185a1bdeb6 MacOS X changes:
- Application Support directory did not include the trailing slash when
   retrieved from the operating system
 - Renamed some files to 'warzone2100' base name
 - Renamed application bundle to 'Warzone 2100'
 - Included a smart script for finding library and framework dependencies
 - Split the application bundle and disk image script into two to facilitate
   testing the application bundle without having to create and mount a
   disk image


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@626 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 00:54:18 +00:00
Dennis Schridde 5e2477adcd Workaround bug #6734 by disabling sequence display completely
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@624 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-24 23:16:47 +00:00
Dennis Schridde 320b4426d6 - Change binary name to warzone2100
- Remove revision output (and revision())
- Add --version cl option
- Commandline options are now all --long-opts (this makes future -s short-opts possible)
- -1024x768 has changed to --viewport 1024x768
- Reodered --help alphabetically


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@623 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-24 22:48:56 +00:00
Ari Johnson 7ae2fa08c0 Generalized MacOS X application support folder for portability
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@622 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-24 00:50:57 +00:00
Dennis Schridde 4d55a6821e Changed/unified namings.
Project: Warzone Resurrection Project
Product: Warzone 2100
Binary: warzone



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@621 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 17:48:47 +00:00
Dennis Schridde e52dba36cc Corrected false error messages, old printfs
netplay.c got a bunch of new LOG_NET debug()s whose effects on performance have not been tested


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@619 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 15:27:20 +00:00
Dennis Schridde 0e288f45e7 - Replace all ASSERT(( )) with ASSERT( )
- Simplify definition of ASSERT(). Now is the same for GCC and MSVC.
  This may not work on versions older than MSVC 2005. If you experience this, please report it!

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@613 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 12:58:48 +00:00
Dennis Schridde ed62f97175 debug.c: Add callback to output to a win32 debugger. (Registered in main.c)
frame.h: Sync MAX_PATH with windef.h and require IE5 for SHGetFolderPath
types.h: Use stdint.h on MinGW and use __int* types on MSVC
lib/netplay/: Remove empty files
main.c: Use "Documents and Settings\Username\My Documents\Warzone 2.0" (in local lang) as writedir on Windows

Fix double definitions in last commit.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@612 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 12:19:17 +00:00
Dennis Schridde 776226572c multisync.c: Fix uninitialized values.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@610 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 23:23:42 +00:00
Roman C fe5085565d Skirmish messages are now shown,
Ability to process console commands (trivial implementation right now), 
Implemented ability for AIs to save their game experience to simulate learning

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@609 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 22:46:15 +00:00
Dennis Schridde 62ae49b0ce Replaced all occurences of DBMB, DBPRINTF and DBERROR with their former define.
( DBPRINTF(("Message")); becomes debug( LOG_NEVER, "Message" ); )



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@608 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 14:28:49 +00:00
Roman C da8c573fd4 Fixed debug() for scripts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@605 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 22:13:13 +00:00
Dennis Schridde c78526b67c New debugging system.
You can now register any callback function to the debug facility.
You will then recieve every preprocessed debug string for which part debugging was enabled.
Offers the possibility to output debugging info to any medium you can think of.

See debug_callback_stderr and debug_callback_file* for an example.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@604 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 21:27:12 +00:00
Roman C aee8ea47f7 Fixed bug #6687,
Added debug() for scripts, 
Plus some cosmetic changes

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@603 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 21:20:17 +00:00
Dennis Schridde c27e649a8a Fix last commit for Linux/GCC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@601 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 16:49:32 +00:00
Roman C 8447972580 Added new scripting functions, cleaned up flex debug output
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@600 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 15:33:49 +00:00
Ari Johnson 52a52fdd30 Moved MacOS user directory to the Library/Application Support tree
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@599 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 15:31:36 +00:00
Roman C 433d707927 Fixed missing player names in multiplayer messages,
cleaned up Bison logs
enabled logs for loading .slo and .vlo files

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@597 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 09:34:42 +00:00
Dennis Schridde b6c5dd9eaa Clean last commit to compile on Linux/GCC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@596 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-20 20:37:26 +00:00
Roman C e4883dabb9 Scripting engine update:
-added new scripting function
-added new callbacks
-added new member variables
-players controlled by AI now receive (and send) multiplayer messages and can process them

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@595 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-20 14:48:14 +00:00
Ari Johnson 8917cea6cb Runtime script parse errors now report a filename and line number rather
than just an inaccurate line number.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@591 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-20 11:15:55 +00:00
Roman C f286ffd1bf Fixed dependencies
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@585 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 14:37:36 +00:00
Roman C 92284dc7bc Scripting engine update:
-implemented string support
-functions can now have arguments, example:
function STRING myFunc(DROID myDroid, int myInt2){<code>}
-functions can have return values:
return <statement>;
or just "return;" for void functions
-function calls are made the normal c/c++ way (using the function from the first example):
myString = myFunc(myDroid, 156);

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@583 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 13:26:11 +00:00
Dennis Schridde 9c1755d1b0 When cleaning the search path:
First saving curSearchPath->higherPriority to tmpSearchPath and then freeing curSearchPath helps against stupidity and bug #6552 (0xfeeefeee).

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@580 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-17 22:29:49 +00:00
Dennis Schridde fe22ab0f64 Show whether this is a debug compile in mainmenu.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@575 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 20:51:45 +00:00
Per Inge Mathisen e4c4f4be6f Revert allied visibility patch. It needs more testing.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@573 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 20:07:24 +00:00
Per Inge Mathisen 6fa9777262 Comment out some anti-cheat checks for now.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@571 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-15 21:03:22 +00:00
Per Inge Mathisen 6d8b190950 Make SBYTE explicitly a signed char, not just a char. This would have broken
some things on platforms where 'just char' means unsigned char. Fix lots of
new signedness warnings resulting from that fix (which would have cropped
up on unsigned char platforms anyway). Also implement a small subset of
stdint.h for windows platform in frame.h, hope this does not create any
conflicts. This allows us to use types like uint64_t where relevant.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@569 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-15 18:20:36 +00:00
Per Inge Mathisen 2149739999 Almost all strings and buffers are now of type char. This fixes
more than half the warnings on gcc4, and makes sure we do not
get signedness problems between platforms where char is defined
with different signedness. Also set line-ending properites for
some bison/flex files that did not have it set.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@563 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 16:52:37 +00:00
Per Inge Mathisen 438868b7dc Fix two minor bugs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@562 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 16:49:11 +00:00
Per Inge Mathisen cc6537bd4f Fix minor bugs and remove some unused code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@561 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 16:27:58 +00:00
Per Inge Mathisen 65175a10ca Add support for MacOSX and big endian platforms. Patch by
iamtheari@gmail.com with changes by me.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@558 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 10:45:49 +00:00
Per Inge Mathisen 8adf85a21b Remove obsolete file lib/ivis_opengl/vid.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@556 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-11 22:08:48 +00:00
Per Inge Mathisen 0d5f830342 Remove obsolete file src/ivis02.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@555 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-11 21:59:37 +00:00
Per Inge Mathisen 8771927ea3 Cleanup of cheat system. Fixed problem where keymap saved in non-cheat mode would
override cheat mode. Made cheat words unavailable unless '-cheat' option and cheat 
key combination are used. As usualy with changes to keys, deleting your keymap file
may be required for this to work as advertised. Added and changed some cheat words.
See wiki for documentation. 


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@554 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-10 16:39:09 +00:00
Per Inge Mathisen a3df2ad6c8 Another force fix. Remove more references to DirectX.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@552 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-10 13:53:26 +00:00
Per Inge Mathisen 5b84a97015 Remove remains of a previous iteration of the graphics layer.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@551 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-08 20:58:32 +00:00
Per Inge Mathisen 081ec89b32 Remove legacy graphics code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@550 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-08 20:03:05 +00:00
Per Inge Mathisen 17bc3e60b6 Some cleanup of graphics code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@549 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-08 18:48:06 +00:00
Per Inge Mathisen 518478f7cd Clean up cheat mode activation. To enter cheat mode, start the game with the
"-cheat" commmand line option, and then, in the game, press left shift and backspace 
simultaneously. This does not work in multiplayer games unless you have compiled 
the game with debug enabled. You must delete your keymap file for this to work as
described.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@548 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-07 15:06:05 +00:00
Roman C 0afa375e12 -testing commit: made a softer mouse wheel zoom in/out
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@543 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-06 11:49:39 +00:00
Per Inge Mathisen 8327ec1092 Fix bug#6531, crash on saving/loading forces. Also add better logging, and
fix some similar but unrelated bugs where the PHYSFS_close() return value is
misinterpreted. Can still not select forces from the multiplayer dialog,
but I also have no idea how this is supposed to work.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@542 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-06 10:23:39 +00:00
Dennis Schridde 9703a85970 Warzone wont compile in non-debug mode since ASSERT() was enabled for it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@540 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 20:56:50 +00:00
Per Inge Mathisen 5467654a9d Add allied visibility. This is mostly untested and might need adjustment.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@539 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 20:45:37 +00:00
Per Inge Mathisen 88fb8b7727 Forward port Qamly's additional radar modes from Berlios. This allows you
to switch terrain radar off, and allies radar on. You must delete your
old keymap file before you can use this feature.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@537 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 19:53:57 +00:00
Per Inge Mathisen 40da012608 Improve error reporting for VLO files.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@535 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 18:02:52 +00:00
Per Inge Mathisen 9cb27d8729 Remove option to limit textures to 2mb of memory, which was unused.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@529 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 13:31:28 +00:00
Per Inge Mathisen 90da3e40c8 Comment out an ASSERT which triggers when the 'Fast Play' tutorial is run.
I think this tutorial is calling the wrong message function here, so this
is probably just a workaround. In any case, it is called to display video
we no longer have.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@527 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 12:17:58 +00:00
Per Inge Mathisen 4cc429e687 Fix assertion warning and erronous variable assignment inside an ASSERT()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@526 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 20:03:26 +00:00
Per Inge Mathisen 5fce2d6c26 Add and fix a number of ASSERT() calls.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@524 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 19:52:38 +00:00
Dennis Schridde ba1eeeb37c Not finding any features of the wanted kind is not error, so dont return false.
Fixes bug #6516 where the AI stops searching for oil sources if it can't find them the first time.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@523 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 19:46:12 +00:00
Per Inge Mathisen 8dc0fc2878 Remove some remaining support for saving and loading binary scripts,
used only on the PSX.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@520 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 17:19:35 +00:00
Dennis Schridde 49df018649 - Output Version and Revision to log
- Fix a pointer warning


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@512 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-31 18:27:01 +00:00
Dennis Schridde 26143d082c - More debug() calls
- Platform dependend LDFLAGS change for Makefile.raw


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@511 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-31 17:57:06 +00:00
Dennis Schridde bb4b7e82b6 - Update versioninfo in configure.ac and warzone.rc
- Cosmetic change in debug.c (Mark begin of the log with "---")
- Fix bug where PhysFS said WriteDir "Warzone-2.0\" is insecure and refused to create it (bug#6466)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@510 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-31 17:02:45 +00:00
Per Inge Mathisen 56279a0bb7 Remove more dead code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@506 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-24 20:12:36 +00:00
Per Inge Mathisen 6a42b3d07b Clean up display3d a bit, removing redundant or obsolete code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@505 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-24 19:42:30 +00:00
Per Inge Mathisen 2b0117a234 The new top secret password to make the game start in cheat mode is '-secret'!
To make the game enter cheat mode, start it as 'warzone -secret'.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@502 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-23 11:49:50 +00:00
Per Inge Mathisen ade47a9c36 Remove some now unused code used previously by software renderer only.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@501 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-23 11:31:51 +00:00
Per Inge Mathisen 3630fba539 Remove last remains of pie_hardware()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@500 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-23 11:24:54 +00:00
Per Inge Mathisen 549c97d926 Remove even more pie_hardware() related stuff
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@499 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-23 11:09:10 +00:00
Per Inge Mathisen c28b3b0f10 Remove some more pie_hardware() code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@498 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-23 11:08:14 +00:00
Per Inge Mathisen 711ca1ff01 Remove a great deal of software renderer related code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@497 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-23 10:35:30 +00:00
Per Inge Mathisen a196f0af47 Clean up the texture loader, and removing software renderer code paths.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@496 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-22 23:35:48 +00:00
Dennis Schridde 5bdfeec464 Remove ivis02 (software renderer)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@494 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-22 22:23:43 +00:00
Dennis Schridde 3116f462fc New Makefile.raw system, works with MinGW/Windows environment and Linux also.
Uses a config.mk.tmpl file to set system dependend stuff, no bash required.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@490 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-21 21:48:55 +00:00
Dennis Schridde 07dcf43518 Fix deprecated function declaration
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@489 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-21 21:46:23 +00:00
Per Inge Mathisen 1fedb0895a Remove some dead code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@488 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-21 20:14:06 +00:00
Per Inge Mathisen 69f5d2e395 Fix some hairy if logic.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@485 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-21 18:49:00 +00:00
Per Inge Mathisen 258fa2ce9d Fix security bug in network code. Player could send a text message of size larger than receiving
buffer. Thanks to Luigi Auriemma <aluigi@autistici.org> for finding and reporting the problem.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@484 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-21 18:42:50 +00:00
Per Inge Mathisen 6606ccaf78 Fix second last warning in src/, which leaves only the probable bug in move.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@482 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-20 21:18:36 +00:00
Per Inge Mathisen 768e28914f Fix some more warnings in src/
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@481 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-20 21:04:01 +00:00
Per Inge Mathisen 84aed800b4 Add comment about possible bug in the waypoint code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@480 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-20 20:33:29 +00:00
Per Inge Mathisen 3ea637bc01 Fix warnings in game.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@479 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-20 20:15:20 +00:00
Per Inge Mathisen 48ad3e614a Change research count's variable type, since the type's maximum was lower than the defined limit.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@478 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-20 19:29:44 +00:00
Dennis Schridde dcf1b713ae Fix crash when using uppercase savegame names.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@477 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-20 08:47:18 +00:00
Dennis Schridde eda1fdc2a4 Make it possible for releases to define their own revision (for display in mainmenu).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@472 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-17 20:04:27 +00:00
Dennis Schridde 941da64be3 - Document -mod enabling in -help
- Change framerate to 60


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@467 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-08 20:38:00 +00:00
Dennis Schridde 4297596af8 - Indent fixes
- More debug output.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@465 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-08 15:39:50 +00:00
Dennis Schridde f8c1cf3f7d - Fix searchpath priorities
- Also tried to fix memleaks


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@464 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-07 14:08:48 +00:00
Dennis Schridde 349b8de00e - AutoPackage download path change
configure.ac:
- Make OpenGL mandatory
- check for jpeg/png headers
- merge in my DEFAULT_DATADIR patch, because in the AutoConf manual it is listed as prefered
- Change YFLAGS/LFLAGS to make it easier for me to play with Bison/Flex
Others:
- Dont require -datadir to end with a dir separator
- Small PHYSFS fix

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@463 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-06 21:45:04 +00:00
Dennis Schridde db7b3190db - Fix the Makefile.am for SDL_framerate.c
- Fix a doubled dirSeparator in subdirs
- Fix accidential DLL creation on MSVC

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@459 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-05 22:19:23 +00:00
Dennis Schridde e9e58f3664 - Limit the framerate to 30 fps. Easily imported functionality from SDL_gfx project (http://www.ferzkopp.net/Software/SDL_gfx-2.0/).
- Fixed previous patch yet again.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@458 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-05 20:39:13 +00:00
Dennis Schridde 8160a01327 Nothing new, just fixes for last patch.
- Resolved a name conflict of SearchPath on Windows
- Cleaned up debugging messages
- Fixed illegal loading of empty path (root element of searchPathRegistry) (caused a bunch of indent changes)
- Always make WriteDir first entry in searchPath
- Fixed WZ_WRITEDIR for Windows

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@456 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-04 15:42:24 +00:00
Dennis Schridde eb7ba7e41d - Again revised the modloading(restrictions were stupid) (src/levels.c,src/init.[ch],src/multiint.c,src/main.c)
- Fixed case problem with noVideo.rpl (lib/sequence/sequence_stub.c)
- Fixed some G++ 4.1 compile problems (mostly invalid conversions) (lib/script/script_parser.y,lib/framework/frame.h,lib/framework/frameresource.c,lib/framework/frameresource.h,lib/framework/input.c,lib/framework/configfile.c,lib/framework/frame.c)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@455 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-04 13:35:01 +00:00
Dennis Schridde 6a96159075 - Again revised the way data paths are searched. See CHANGELOG for details.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@454 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-03 22:00:05 +00:00
Dennis Schridde 1b1a695684 - Fixed a HEAP error (Invalid Address specified to RtlFreeHeap) on Windows (MSVC compile) (src/data.c)
- Pointed out other locations where that error could occur (src/data.c, lib/ivis_common/pcx.c)
- Deprecated pie_ReloadTexPage, as it doesn't appear to be used (lib/ivis_opengl/tex.c)
- Made iSprite width and heigth unsigned (lib/ivis_common/pietypes.h)
- Added debugging for MSVC which doesn't understand the DB* redefines (lib/ivis_common/bitimage.c)
- Fixed deprecation for MSVC (lib/framework/macros.h

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@452 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-03 19:43:12 +00:00
Dennis Schridde 8627f307cc - Fixed crash due to freeing 2 times.
- Cleaned up unneeded frees from last memleak fix.
- Added debug info as allways.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@451 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-03 16:24:32 +00:00
Dennis Schridde ee8d18ef48 - Big memleak fixed
- DB* replaced by debug calls
- Added MSVCRT debugging flags for finding memleaks
- Added points to the TODO

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@450 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-01 19:11:05 +00:00
Dennis Schridde 37ccc21206 Fix a typo
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@442 4a71c877-e1ca-e34f-864e-861f7616d084
2006-06-21 16:02:56 +00:00
Dennis Schridde 03386361bb Readd a workaround for broken PhysFS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@441 4a71c877-e1ca-e34f-864e-861f7616d084
2006-06-21 15:34:26 +00:00
Dennis Schridde 9c8165d360 Fix a missing '\0' which could prevent correct datadir recognition.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@439 4a71c877-e1ca-e34f-864e-861f7616d084
2006-06-21 10:00:06 +00:00
Dennis Schridde 194026f379 Rewritten mod loading
This patch includes:
- Strongly modified way of adding mods, maps and addons
- Make nearly everything use PhysFS (just netlog and debug stay)
- Convert several DBERRORs etc. to debug()

The new modloader works like this:
For every mod supplied on the commandline ("-mod") (maximum of MAX_MODS=100) keep it in mind (char * global_mods[]).
After initializing PhysFS do scanDataDirs(), which tries to register all possible paths, global_mods[] and maps with PhysFS. Dont check wether we succeed, only at the very end check if we got a "gamedesc.lev".

When we buildMapList(), mark "gamedesc.lev" as MOD_CAMPAIGN, "addon.lev" and every user supplied map as MOD_MULTIPLAY.

When we loadMods() modify the searchPath according to the supplied mods.
Note: T1 maps like Sk-Rush come from gamedesc.lev, are marked MOD_CAMPAIGN and thus wont load any multiplay_mods[], even if the user starts a multplayer game. Instead those maps are threated as campaignmode and will only load campaign_mods[].

This patch requires the "mp" patches to be either in ProgramDir/mp, in ProgramDir/data/mp or in ProgramDir/mp.wz
This is because one cannot add warzone.wz/mp to the search path if warzone.wz is an archive.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@436 4a71c877-e1ca-e34f-864e-861f7616d084
2006-06-16 19:10:23 +00:00
Dennis Schridde 5175535d9d Full pathname includes
Same as in r431, but now for lib/
- converted the sources in lib/ to use full path includes instead of just the filename.
- marked places where lib/ivis_*implementation* (eg opengl) is needed, because of incomplete lib/ivis_common.

Should improve the understanding of interfaces and code organization.

(Also fixed a double slash (//) include in src/multimenu.c)



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@432 4a71c877-e1ca-e34f-864e-861f7616d084
2006-06-02 19:34:58 +00:00
Dennis Schridde 27fadd14cf - converted the sources in src/ to use full path includes instead of just the filename.
- marked places where lib/ivis_*implementation* (eg opengl) is needed, because of incomplete lib/ivis_common.

Should improve the understanding of interfaces and code organization.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@431 4a71c877-e1ca-e34f-864e-861f7616d084
2006-05-27 16:37:17 +00:00
Dennis Schridde f0f3709178 cleaned the buildfiles a bit up:
- removed Gentoo fix from autogen.sh as it doesn't seem to be needed anymore
- converted "ugly hack"(tm) to a .Phony target in src/Makefile.am

changed version and revision retrieval of Warzone (displayed in the mainmenu):
- Before:
    #define SVN_REVISION "..."
    - defined in src/revision.h, included and used in src/frontend.c
- Now:
    const char * version(); and const char * revision();
    - declared in src/version.h, defined in src/version.c, called in src/frontend.c



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@430 4a71c877-e1ca-e34f-864e-861f7616d084
2006-05-27 16:31:35 +00:00
Rodolphe Suescun 52c8e10ea4 Added event CALL_VIDEO_QUIT at end of intel map screen.
Should make that damn transport arrive.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@427 4a71c877-e1ca-e34f-864e-861f7616d084
2006-05-10 05:02:58 +00:00
Angus Lees b3522f3596 correct signedness of unused palette size parameter..
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@426 4a71c877-e1ca-e34f-864e-861f7616d084
2006-05-08 16:11:59 +00:00
Angus Lees c0a561cfb1 intelmap.c: Add new "seqtext" display for displaying the subtitles
from videos.  Will do until we get proper video support.
intelmap.c: Temporarily disable the Flic box, since it just loops on
	    noVideo.rpl until we have real video
intelmap.c: Hack displayImmediateMessage again to popup new
	    IntelScreen seqtext display
rpl_reader: Convert to PHYSFS calls
seqdisp.c:  Move "novideo.rpl" squashing to sequence_stub.c
seqdisp.c:  Fix seq_AddTextForVideo() prototype
scriptfuncs.c: Avoid race when winlose video callback needs to be called during		       displayImmediateMessage


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@425 4a71c877-e1ca-e34f-864e-861f7616d084
2006-05-08 15:10:45 +00:00
Angus Lees ef21733bf0 fix some simple compile warnings (some of them would be bugs on non-i386)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@424 4a71c877-e1ca-e34f-864e-861f7616d084
2006-05-03 23:10:36 +00:00
Rodolphe Suescun 71c79af87d Added code for modding.
Fixed Makefile.raw stuff.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@422 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-29 07:09:00 +00:00
Per Inge Mathisen e467933c79 Display scenario intelligence briefings as console messages. They are
often way too fast for users to read, but it is a step in the right
direction. Patch by Angus Lees.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@420 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-20 18:49:51 +00:00
Per Inge Mathisen 67d648a2a2 The research items rotate too quickly, so slow them down to one
full rotation every 2 seconds, independent of frame rate. Patch
by Angus Lees.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@419 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-20 18:43:08 +00:00
Per Inge Mathisen 9bb74458c8 When you load a savegame where two (enemy?) units are adjacent(?) to each other, its
possible to hit a div by zero bug in visibility.c:visibleObject().

Problem occurs when rayCast() calls rayLOSCallback() and the callback exits due to 
(distSq >= tarDist) being true, without ever having executed the following block that 
updates lastD. lastD remains 0 and the divide at the end of visibleObject throws a 
SIGFPE. On any later occasion, the last distance value from the last calculation will be 
reused in this case, which is still bogus but isn't fatal.

The fix is easy, just add "lastD = dist;" before the return in the (distSq >= tarDist) 
case.

Patch by Angus Lees <gus> in bug #5761.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@418 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-12 14:58:40 +00:00
Dennis Schridde 40090410ac - Cleaned up stubs
- Removed unused/outdated ivis02/Ivis02.dsp/.vcproj and  src/mpdpxtra.[ch]
- Replaced src/mplayer.c with a stub, containing only mplayerSubmit()
- Added DEPRECATED warnings
- Added documentation for WZ_DEPRECATED
One commit follows, to finish the move from ivis02/v4101_stub.c to ivis02/v4101.c



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@415 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-08 19:14:30 +00:00
Dennis Schridde b84d79a576 - Drastically simplyfied mouse-handling.
Patch by Cybersphinx

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@414 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-08 16:13:48 +00:00
Dennis Schridde daf32736ad - Remove CD handling code, which is not used anymore.
Patch by Cybersphinx.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@413 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-08 15:58:27 +00:00
Dennis Schridde 628a06067b lib/ivis_opengl/screen.c:
- G++ fix( PHYSFS_file ).

other:
 - Simplify sound code.
 - Make Warzone run with busy audio device (Linux).

All patches by cybersphinx.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@412 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-01 17:50:19 +00:00
Rodolphe Suescun 045755e9a3 Minor changes in menus (new audio config menu).
Prepared mod stuff.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@411 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-27 19:53:36 +00:00
Rodolphe Suescun e82eebdf07 Merged all (useless, wicked) patches into data/mp directory.
Fixed button highlight problem in the map selection GUI (was
a very funny bug :) ).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@410 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-27 11:03:10 +00:00
Dennis Schridde 06966cc158 Quick crashfix for Windows, regarding datadir recognition.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@403 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-05 14:29:32 +00:00
Rodolphe Suescun e36796f6ce Made necessary changes so that code can be compiled using g++.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@402 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-01 06:12:28 +00:00
Rodolphe Suescun aa3c7b4ff7 Added shadows as an option.
Alt-S (can be modified) to toggle.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@401 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-28 14:04:59 +00:00
Dennis Schridde 1e7edf9fa2 Fixes some minor memleaks and marks the source of the big one in pie_PNGLoadMem.
Also big amount of whitespace changes, sorry for the inconvenience...



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@400 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-18 18:54:37 +00:00
Rodolphe Suescun 984de8f9c2 Integrated new tileset from grimandmandy.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@397 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-16 07:32:34 +00:00
Rodolphe Suescun f35669c212 Fixed problem in data patch 05. Maybe all patches should be
merged...
Now filenames are case insensitive (will help using maps
created with Qamly's EditWorld).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@396 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-15 09:57:55 +00:00
Rodolphe Suescun d72f0cdc02 Fixed data directory problem.
Fixed sound source destruction problem.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@395 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-11 09:00:20 +00:00
Per Inge Mathisen 22a78c80bc Add helpful comments to command line parsing code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@392 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-22 12:32:20 +00:00
Per Inge Mathisen 865ef8f633 Even more PSX code removed. Will the horror never end?
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@391 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-21 17:53:06 +00:00
Per Inge Mathisen 9aa3edda64 Fix data path problems under Windows created by previous autopackage patch. Make sure we
check for presence of gamedesc.lev before thinking a path is good. Add more data path 
checks, and gracefully drop paths that do not work.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@390 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-21 15:36:20 +00:00
Rodolphe Suescun 62b6055732 Small change in water rendering code (will require changes
in tilesets).
Fixed 2 memory leaks.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@389 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-19 10:09:20 +00:00
Per Inge Mathisen 45a97f4204 Reinstate patch loading on game start for now, so that people can play without crashing
on building limits menu. This should be fixed properly later. See bug#4968. Reported 
first by dpblnt <dpblnt>. Added FIXME comment.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@387 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-16 18:55:31 +00:00
Per Inge Mathisen 5b6b5ecf78 Add more info to command line option -help, patch by Christian Vest Hansen
<karmazilla@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@385 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-16 18:48:03 +00:00
Dennis Schridde a166a71cc9 Commandline options changed:
-datapath is now named -datadir to match the internal variables again.
        Added -help to show all possible command line options.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@383 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-15 12:43:16 +00:00
Dennis Schridde 16fe51a87e Added AutoPackage (http://www.autopackage.org/) support.
Show version in mainmenu.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@381 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-15 11:40:43 +00:00
Rodolphe Suescun 9a6e9fa9e2 Changes in the map selection GUI.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@380 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-28 18:28:12 +00:00
Rodolphe Suescun 12ad64f101 Added support for *.addon.lev files in mods.
small fixes in the GUI (support for more maps etc.).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@379 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-28 16:19:33 +00:00
Rodolphe Suescun 7cbcd91f70 Added support for addons directory.
Small fixes in openGL renderer.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@377 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-27 06:12:51 +00:00
Rodolphe Suescun 458fa98415 Converted remaining pcx files.
Tried to fix the patches-loaded-in-campaign-mode problem.
  this fix must be tested now...
Fixed problem with pasting host address.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@376 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-22 14:33:32 +00:00
Per Inge Mathisen 5c9ab850c1 Remove unused file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@375 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-10 15:51:19 +00:00
Rodolphe Suescun e2226d927d More Windows-related fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@372 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-05 16:47:41 +00:00
Rodolphe Suescun 9b001a7131 Integrated master server patch from Henri Valta.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@370 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-02 21:45:42 +00:00
Per Inge Mathisen 8968b30363 Drop the use of soon-to-be-deprecated function PHYSFS_setSaneConfig() and make the
default write directory warzone-2.0 for Windows and .warzone-2.0 for Linux under the 
user's home directory.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@368 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-02 08:48:36 +00:00
Rodolphe Suescun d3629e24f9 Fixed various file loading/saving in windows version (related to
using PHYSFS_getDirSeparator() to build paths).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@367 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-01 20:22:35 +00:00
Rodolphe Suescun f780a15b6d Decreased min camera distance (will be useful for artists).
Fixed paths for savegames and screendumps.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@366 4a71c877-e1ca-e34f-864e-861f7616d084
2005-11-30 21:09:38 +00:00
Per Inge Mathisen 6778317ddf Try to fix path problems in Windows, and add more debug logging of path operations for
easier future debugging. Problem reported by Grim.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@364 4a71c877-e1ca-e34f-864e-861f7616d084
2005-11-28 11:07:02 +00:00
No Author 5ba7ddac6b Create final repository structure.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@362 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-28 17:47:08 +00:00