Commit Graph

262 Commits (223ea92358745077ced7979146601ae07573c6e1)

Author SHA1 Message Date
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
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
Dennis Schridde fd7694dcc1 Update ChangeLog with latest changes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@525 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 19:58:28 +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
Dennis Schridde af9f7f89f5 - debug.h: Let Warzone output ASSERT as debug( LOG_ERROR )
- block.c: Fix some malicious conversion from pointer to int


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@522 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 19:42:56 +00:00
Per Inge Mathisen 31fe5565aa Fix assertion in mouse code. We checked for mouse values that
only worked pre-SDL-porting.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@521 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 18:11:44 +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 9ac6649c35 Strip Makefile.raw build in release mode and add support for .rc files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@519 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 14:59:36 +00:00
Dennis Schridde 21bc293764 Prevent nameclash when using rc file for Makefile.raw build in the future.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@518 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 14:57:40 +00:00
Dennis Schridde c8f3764834 Update Visual C++ project and add MSVC 2005 solution file.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@517 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-04 14:01:41 +00:00
Dennis Schridde 2c72cfa09d Should be what Troman meant how to fix bug#6464 (Wz uses wrong AI version).
Can we delete the old AI?


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@516 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-03 18:37:35 +00:00
Dennis Schridde 7cf742e5b3 Finaly fix configure.ac to export REVSION=`svnversion -n .` instead of the current revsion, so we get the correct revision on every make.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@515 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-03 09:55:24 +00:00
Dennis Schridde 937e9b243d Move all multiplayer things to mp/addon.lev, so they get marked as being multiplayer.
This should solve the wrong AI bug. (bug#6464)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@514 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-01 19:01:28 +00:00
Dennis Schridde eaff16d04d Make MinGW compile a windows app instead of a console app. (Suggested by the MinGW docs. Probably got removed by me some time ago when redoing the Makefile.raw)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@513 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-01 19:00:21 +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
Dennis Schridde 83046470f2 - Updated CHANGELOG
- Makefile.raw doesn't try to link every .o to GL on Linux anymore
- Fixed PhysicsFS ignorecase to not create a Doxygen mainpage


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@509 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-30 15:58:59 +00:00
Dennis Schridde 61fc63cf13 Remove unused file fbf.[ch] (Included file management functions.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@508 4a71c877-e1ca-e34f-864e-861f7616d084
2006-07-30 15:56:11 +00:00