Commit Graph

531 Commits (f25a9aa3aca1ff61a12ff6f1a4dcb54283d0f386)

Author SHA1 Message Date
Dennis Schridde 580338815f Update for 2.0.4_rc2
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@576 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 21:23:24 +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
Dennis Schridde b3209ba881 Update to version 2.0.4_rc2
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@574 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 20:30:02 +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
Roman C e0c93aec7d Scripting engine update:
Implemented local variables, which can be used inside of functions or events.
Syntax:

local int myVar1,myVar2;

 * fixed a bug which made wz crash when local variable was declared inside of an event

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@572 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 11:23:43 +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
Roman C a891af6a7a git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@570 4a71c877-e1ca-e34f-864e-861f7616d084 2006-08-15 18:38:51 +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 e730e71ee7 Add MacOSX support files by Ari Johnson (iamtheari).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@568 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-15 16:43:32 +00:00
Per Inge Mathisen 2fe7d306ac Fix some MacOSX issues with order of include/defines, and required conditionals.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@567 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-15 16:33:48 +00:00
Per Inge Mathisen e86f311e96 Put back the prototype for glActiveStencilFaceEXT, which is needed on
Windows despite SDL_opengl.h


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@566 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 18:23:39 +00:00
Per Inge Mathisen 91e864b3a5 Fix some more warnings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@565 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 17:36:22 +00:00
Per Inge Mathisen 5c7f5462e0 Set one more forgotten svn:eol-style property
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@564 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 16:55:23 +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 5d94e4b2e4 Fix problem with missing config.h when not using autoconf
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@560 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 15:22:20 +00:00
Per Inge Mathisen 302967bd69 Fix a ton of warnings with a simple three line change
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@559 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 11:39:01 +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
Roman C 223ea92358 Scripting Engine Update:
-added simple function support

Limitations:
-void return type only
-no arguments support

Example:
function void myFunc() {<code>}

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@557 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 10:02:59 +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 ecb223924a Remove DirectX types
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@553 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-10 16:05:52 +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
Dennis Schridde 47af9cd71c - Set version to 2.0.4_rc1
- Fix typo in TODO
- Add a Debugging section to the CHANGELOG


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@547 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-07 12:30:07 +00:00
Dennis Schridde 06a5c55cc3 Move cursors.c to cursors.h so I don't try to accidently compile it again.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@546 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-07 00:52:01 +00:00
Dennis Schridde effa407152 Don't include GL/glext.h directly. Use SDL/SDL_opengl.h instead.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@545 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-06 17:51:01 +00:00
Dennis Schridde 8af39f7830 Updated ChangeLog with latest stuff (I allways forget to do it immediately)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@544 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-06 15:05:47 +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 7fbe096407 Cleaning up the data/ dir:
- Move all maps to data/multiplay/maps
  They are still loaded from data/mp/addon.lev !!!
- Delete unused SkirmishAI



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@541 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 22:51:44 +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
Dennis Schridde bfd14145bf Add DoxyGen
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@538 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 20:04:09 +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
Dennis Schridde bdd91a32d2 Revised ASSERT()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@536 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 18:05:11 +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
Dennis Schridde 395f6e4bf0 Troman's revised AI (reacts faster and builds less crappy stuff)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@534 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 16:54:09 +00:00
Dennis Schridde 3d2da7ea35 Add more name strings and unit templates for multiplay AI
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@533 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 16:53:06 +00:00
Dennis Schridde ab438de9a5 Fix some typos in the vcproj file.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@532 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 15:30:07 +00:00
Dennis Schridde 506ec7a531 Use the same icon on Windows as on Linux. (centered)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@531 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 15:19:26 +00:00
Dennis Schridde c976c589ae Fixed MSVC overriding the obj-code for piestate.c when compiling the 2nd of the 2 files of the same name.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@530 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 14:16:09 +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 2386a3e924 Reduce amount of memory debug log spam. Turn some into debug() calls. Make ASSERT()
really assert() when in debug mode.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@528 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 13:16:12 +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