Commit Graph

3778 Commits (655fd8e6e3dc1e1a3de2621a258e4f24c7caef3f)

Author SHA1 Message Date
Dennis Schridde 655fd8e6e3 windows.h is not needed after frame.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4712 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:28 +00:00
Dennis Schridde d747950e75 Fix ambigous else
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4711 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:20 +00:00
Giel van Schijndel 4b6438b30a * Make function formationFind() return the formation it found (and NULL if none found rather than false) instead of writing it into an output parameter
* Add Doxygen documentation to some formation functions


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4710 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:42:59 +00:00
Giel van Schijndel 7f847d9b08 Fix yet some more "function declaration isn’t a prototype" warnings (for the wiggle extensions)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4709 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:15:01 +00:00
Giel van Schijndel 8d2524be31 Const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4708 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:10:19 +00:00
Giel van Schijndel 04f46f40ee Clean up function fpathHashFunc:
* Make less assumptions about the amount of bits & bytes in types; use sizeof() instead
 * Use int32_t instead of SDWORD as the former guarantees a constant size
 * Some less magic numbers
 * Add Doxygen documentation to this function


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4707 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:03:12 +00:00
Giel van Schijndel 0ec5a34e25 Add Doxygen documentation to some functions in move.[ch]
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4706 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 22:43:14 +00:00
Giel van Schijndel b1c6393094 * Don't include SQLite's and GLee's sources in the Doxygen documentation
* Don't show the references and referenced-by relations in the generated Doxygen docs


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4705 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 22:41:34 +00:00
Giel van Schijndel b74bdb8f1f Move the doxygen documentation files to doc/code/ so that adding doxygen documentation unrelated to a specific source file doesn't require changing Doxyfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4704 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 20:46:42 +00:00
Giel van Schijndel 1d129c1b13 Move the mainpage for the Doxygen documentation from src/main.c to doc/mainpage.dox
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4703 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 20:17:38 +00:00
Giel van Schijndel cf04b1797d Pass all "non-special" parameters from __BUILD_SCRIPT to the configure script
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4702 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 19:24:02 +00:00
Giel van Schijndel 4a17aeeec7 * Delete unused and empty function StartTacticalScroll()
* Mark the parameters for several functions as WZ_DECL_UNUSED (for those functions that require the parameter as part of their interface)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4701 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 17:17:50 +00:00
Giel van Schijndel 73fcb5eb6a Enable NLS for our parsers when it's enabled for us (using --enable-nls)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4700 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 16:38:27 +00:00
Per Inge Mathisen 86f67552ff Add hack to make player number appear in flag list again, instead of
some other random graphic. Also add proper tooltip to this dialog.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4699 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 16:33:32 +00:00
Giel van Schijndel 44b3b5c1e0 Compile with -Wwrite-strings to warn about passing string constants into char* variables as opposed to const char*
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4698 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 16:17:39 +00:00
Giel van Schijndel 648a2b933b Update GLee.diff for r4693
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4697 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 16:09:09 +00:00
Giel van Schijndel 1252538097 * Make pIdent for VAR_SYMBOL and FUNC_SYMBOL const so that we're const correct with the function tables in scripttabs.c
* Replace "nstr = malloc(strlen(str) + 1); strcpy(nstr, str);" by using "nstr = strdup(str);" instead
 * Remove a non-sensical self-assignment ("pIdent = pIdent;")
 * In scriptAddVariable:
  * "Overallocate" for the new VAR_SYMBOL so that we can store the identifier in that single chunk of memory
   * This allows deallocating the entire structure with a single free() call (which prevents problems with the constness change to VAR_SYMBOL mentioned above)
  * Don't take ownership of the memory pointed to by psVarIdent->pIdent, just copy its contents instead
  * Make FREE_VARIDENTDECL a function instead: freeVARIDENTDECL
   * In this function also free psDcl->pIdent


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4696 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 15:18:28 +00:00
Giel van Schijndel 2a0f803c51 Const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4695 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 15:08:14 +00:00
Giel van Schijndel 10eac267e3 Remove unused global variable psLocalVarsTemp
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4694 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 15:04:24 +00:00
Per Inge Mathisen 5d3700bb1c Fix GLee warnings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4693 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 15:02:54 +00:00
Giel van Schijndel e8ff8255a9 Some const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4692 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 15:01:52 +00:00
Giel van Schijndel 457c7005f3 * Remove global variable psLocalVars which was __always__ NULL
* Remove unused function scriptClearLocalVariables() (which was effectively a NOP due to psLocalVars being NULL)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4691 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 14:56:49 +00:00
Giel van Schijndel f494f40dde Remove global var psFunctions which is __always__ NULL
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4690 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 14:18:06 +00:00
Giel van Schijndel 1fae16dedc * Revert r4688 for GLee.h (use some GCC pragmas to ignore warnings in the GLee header)
* Actually *fix* the "function declaration isn’t a prototype" warnings


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4689 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 13:32:18 +00:00
Giel van Schijndel 055903cca2 Use some GCC pragmas to ignore warnings in the GLee header and source file (so that we can compile cleanly, even with -Werror)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4688 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 13:01:10 +00:00
Giel van Schijndel 0859814e16 Replace our custom OpenGL extension checking mechanism by GLee:
* import the code from GLee into our repository (a single source and header file), and replace all use of the check_extension function by use of GLee functions
 * Remove function stencil_one_pass and replace all calls to it with `if (GLEE_EXT_stencil_two_side && GLEE_EXT_stencil_wrap)`

Patch from ticket 8 by Buginator (with some minor additions by me)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4687 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 12:52:19 +00:00
Dennis Schridde e0fc8e8f2b Add some more docs on archive mounting
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4686 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 00:06:34 +00:00
Per Inge Mathisen f0226edf93 Add new debug level for messages and new log calls.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4685 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-19 21:41:18 +00:00
Per Inge Mathisen 28669696a4 Clean up debug log. We now print the function name first automatically - no need to
put that into the debug call. Rename some categories to make them line up correctly in log.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4684 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-19 14:52:35 +00:00
Per Inge Mathisen bcf6686b7f Add saving games and basic checking of results to --selftest.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4683 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-19 13:14:10 +00:00
Per Inge Mathisen 334cdc3e2e Fix bug #11501: multiplayer crash with nexus hydras, reported by Paul Wise.
Also fix another crash bug with nexus link where a droid would acquire a null target.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4682 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-18 21:19:12 +00:00
Per Inge Mathisen 69a4b6a380 Fix bug #11520: crash when saving the game in campaign mission alpha 4, reported
by Jan Dittberner. If a tagfile group had only default values, it would consume
the group end tag and the rest of the file would be read corrupt.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4681 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-18 20:43:07 +00:00
Per Inge Mathisen 1c7f32f6c6 Extend addMultiEditBox() to enable highlighted buttons. Make player name,
game name, and map name edit box buttons highlightable in MP dialog.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4680 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-18 19:45:10 +00:00
Per Inge Mathisen f106d10772 Do not leak VRAM when displaying map previews. Patch by Buginator with changes by me.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4679 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-18 18:04:55 +00:00
Per Inge Mathisen 359110bf52 Make host game and keymap defaults buttons shaded on mouse highlight, like
the other similar buttons. Icons by Elio Gubser.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4677 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-18 18:00:43 +00:00
Per Inge Mathisen 34165e2ec8 Fix bug #11519: crash when saving the game. Reported by Jan Dittberner.
I forgot to add size of compatibility zone header to save buffer size in r4637.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4676 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-18 17:30:59 +00:00
Per Inge Mathisen 01af04febd Change addMultiBut so that you can specify different images for buttons when
they are normal state, pressed state, and highlighted by mouse. Removes ugly
hack to provide highlighting for only some buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4675 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-18 17:05:40 +00:00
Giel van Schijndel 1585b7d55a Add a workaround for the X11 headers #defining Status (i.e. #undef it), to prevent problems
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4672 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 20:55:46 +00:00
Giel van Schijndel 1e0ef48650 Use WZ_DECL_UNUSED to inhibit warnings about unused parameters
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4671 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 20:29:19 +00:00
Per Inge Mathisen af07a3fda7 Move map preview button in line with the buttons above it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4670 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 17:00:19 +00:00
Per Inge Mathisen 01d9402ab5 Add highlight frame around the ready button
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4669 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 16:46:55 +00:00
Giel van Schijndel a85956c8df Make building with multiple threads (make -j3) optional for the crossbuild script
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4668 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 16:09:14 +00:00
Roman C 4c5d34f22b Scripting engine:
Allow global variable declarations to be mixed with trigger and event/function declaration. This allows us to #include script files which variable/event declaration.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4667 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 15:59:43 +00:00
Per Inge Mathisen f89e3bf1a6 Add a question mark button icon.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4666 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 15:49:41 +00:00
Giel van Schijndel 0b96e9ba0a Add the ability to the crossbuild script to build with --enable-debug=relaxed
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4665 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 15:48:41 +00:00
Giel van Schijndel 7b46d4ba9a Parse through all commandline parameters to the crossbuild script by means of a for-loop
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4664 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 15:02:53 +00:00
Giel van Schijndel 40cc8f09ac Give the configure and crossbuild scripts the possibility to specify the compression method on the command line (--with-nsis-compression)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4663 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 14:32:48 +00:00
Giel van Schijndel 5b0612e881 some const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4662 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 11:53:49 +00:00
Giel van Schijndel 5cdf20261d Update POTFILES.in
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4661 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-16 22:41:47 +00:00
Giel van Schijndel f4d635aab9 ASSERT the type of psDroid __before__ using psDroid
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4660 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-16 21:31:17 +00:00