Commit Graph

3795 Commits (650447d833fbdc8ca1b3bec886e06c711ec78c4d)

Author SHA1 Message Date
Per Inge Mathisen 650447d833 Fix crash when trying to delete text coming from a clipboard paste.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4732 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 17:11:48 +00:00
Per Inge Mathisen 81c88dbf38 Purely cosmetic cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4731 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 17:02:46 +00:00
Per Inge Mathisen 406fdaea13 Add new reticule button icons for edit mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4730 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 13:30:03 +00:00
Giel van Schijndel 18824153a0 * Add Doxygen documentation to yet some more functions
* Rewrite function `fpathHashPresent` to use a for-loop rather than a dirty while-loop


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4726 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 09:52:19 +00:00
Giel van Schijndel 489896d627 Make astarInner an `int` and ASSERT that it stays non-negative (i.e. that it doesn't overflow)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4725 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 09:25:10 +00:00
Per Inge Mathisen a36a4fd3c3 When edit pause mode is on, enable the build and manufacture reticule buttons
and make them work as if ctrl+o options were chosen.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4724 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 09:19:10 +00:00
Giel van Schijndel d3f0fbc501 * Put fpathUpdate() in the Doxygen documentation group `pathfinding`
* Move preprocessor constant FPATH_LOOP_LIMIT from fpath.h to astar.h
 * Add Doxygen documentation to FPATH_LOOP_LIMIT and global variable astarInner


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4723 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 09:18:37 +00:00
Per Inge Mathisen c5f949a63e When creating new map, remove old flags, structure limits, and gateways.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4722 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 08:51:36 +00:00
Per Inge Mathisen 3357930250 New ctrl+o menu button and cheat key to realign height of all map objects.
Delete keymap before using cheat key.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4721 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 08:28:39 +00:00
Per Inge Mathisen 20bd0ab135 Make sensor display key ('z') work with distance fog as well.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4720 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 08:18:57 +00:00
Per Inge Mathisen 7c4ae94a0d Cleanup edit3d and make sure we do not crash on out of map coordinates.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4719 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 07:21:52 +00:00
Giel van Schijndel 495b86f592 Update pkg/nsis/Makefile.am to match the rename from NSIS_COMPRESSION to INSTALLER_COMPRESSION in r4714
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4718 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 00:44:46 +00:00
Giel van Schijndel f83268fd17 * Add a Doxygen documentation module (named `pathfinding`)
* Add Doxygen documentation for a lot of path finding related functions & types and add them to the `pathfinding` documentation group


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4717 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 00:12:10 +00:00
Dennis Schridde ab8b41239d Remove stack-protector, as it breaks my MinGW build.
Please add it manually on the commandline whenever you need it.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4716 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:51 +00:00
Dennis Schridde faff55ad5e Move -lstdc++ from Makefile to configure.ac
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4715 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:45 +00:00
Dennis Schridde afc1ed6605 Cleanup configure.ac
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4714 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:40 +00:00
Dennis Schridde 4c10f714c5 Use std::endl instead of EOL
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4713 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:35 +00:00
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