Commit Graph

1977 Commits (4849d5bf94470ad6302a65c495bb72dff776e4b1)

Author SHA1 Message Date
Giel van Schijndel 4849d5bf94 * Use revision 3545 (in the Code::Blocks repository) of autorevision instead; it doesn't depend on TinyXML
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2576 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-21 15:11:43 +00:00
Giel van Schijndel 2ebe3ddc28 * Add a build-time tool "autorevision", which I copied from the Code::Blocks project (GPLv2+)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2575 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-21 14:33:16 +00:00
Dennis Schridde 682e4a0f38 Install the scriptingmanual as well.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2573 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-21 11:01:39 +00:00
Giel van Schijndel 1f78a7fcef * Add docs/ directory to automake tree;
* make sure that it's contents are installed as docs when --install-data is used


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2572 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-20 19:03:27 +00:00
Per Inge Mathisen c7d48047d7 No longer store the tall object bit for each tile; instead check the height of the
object on the tile directly.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2570 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-20 17:38:46 +00:00
Per Inge Mathisen 4483a740ae Move some variables into local scope and rename shadow variable.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2569 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-20 15:43:20 +00:00
Giel van Schijndel 718614cb0d * Fix version number for 2.0.8 RC1 in Debian changelog
* version numbers aren't allowed to contain undersquores ('_') within Debian's package system


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2567 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-20 14:05:08 +00:00
Giel van Schijndel bcd84497bd * Add SQL Queries extracted from the M$ Access DB as provided in the original source tree
This addresses #2 ( https://trac.mortis.eu/warzone/ticket/2 )

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2564 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-19 22:38:22 +00:00
Giel van Schijndel 22b6562f3f * Make sure autoconf/the configure script only goes into cross-compiling mode when we're actually compiling for another platform
* Add autoconf, automake and pkg-config to the Build-Dependencies
 * Alphabetically re-order the Build-Dependencies


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2563 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-18 20:56:33 +00:00
Giel van Schijndel 0d18dc6f86 * Add note about Debian RFP (Request For Packaging) for QuesoGLC to TODO list
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2562 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-17 22:25:24 +00:00
Giel van Schijndel b368e403b7 * Add an additional Debian version for the development branch
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2561 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-17 21:19:20 +00:00
Giel van Schijndel 767802902a Backport some stuff for the Debian package dir:
* r1839 from trunk to 2.0:
   * Update Debian changelog file
 * r1930 from 2.0 to trunk:
   * Bump upstream version number for 2.0.7
 * r1990, r2496 and r2502 from 2.0 to trunk:
   * Bump upstream version number for 2.0.8
 * r2032 and r2033 from tags/2.0.7 to trunk:
   * Add bison, flex and unzip build dependencies
   * Run autogen.sh if necessary (e.g. fresh svn checkout)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2560 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-17 21:05:02 +00:00
Roman C 2cb3db4fa9 Make AIs being able to save visibility state of the map (for of war) and restore it on game start up.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2559 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-17 13:57:17 +00:00
Dennis Schridde c5067683e5 Nullterminate correct string. Reported in bug#10165.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2558 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-16 23:44:34 +00:00
Per Inge Mathisen 3597192e3a Set filtering to best possible, let me know if additional problems are seen now.
I can no longer reproduce any artifacts on my box, which is odd.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2557 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-16 21:23:39 +00:00
Dennis Schridde eff43d1fa1 Spelling mistake
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2556 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-16 21:07:10 +00:00
Dennis Schridde 8151788f14 Giel wants this to be commented...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2555 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-16 20:57:55 +00:00
Per Inge Mathisen 750646efe0 Add back linear magnification filtering (enough testing now, we know the issues).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2554 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-16 20:56:29 +00:00
Dennis Schridde ceb1a432bc Proper fix for ICC warning "argument is incompatible with corresponding format string conversion".
The fix which silenced the warning in r2550 was wrong.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2553 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-16 20:51:34 +00:00
Dennis Schridde c812691bb8 Move AC_PROG_CC_STDC for cleaner flow / simpler structure.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2552 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-16 16:45:01 +00:00
Giel van Schijndel c8052e9d1b * Use autoconf macro AC_PROG_CC_STDC instead of manually appending -std=c99 to our CFLAGS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2551 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-16 13:09:03 +00:00
Dennis Schridde c7b00fadaf More work on the ICC front:
- Less strict warnings in debug-mode (still unusable, because ICC warns about _a lot_)
- Explicit conversions
- Clarify parameter evaluation order


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2550 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-15 18:09:18 +00:00
Dennis Schridde c361b89dfa There were more "a class=" anchors...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2549 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-15 16:19:16 +00:00
Dennis Schridde 44a933ad87 Correct anchors to use ids, so that ...#id works.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2548 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-15 16:16:24 +00:00
Giel van Schijndel d331eff613 * Remove source code mime-types which where text/plain (from EditWorld); since that'll prevent these sources from being shown with source code highlighting in some web interfaces (WebSVN, Trac, etc.)
* Also change wxWidgets resource files' mime-types to text/xml

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2547 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-15 08:19:52 +00:00
Roman C 74b36742e4 - set LC_NUMERIC in the setlocale() call to accept a period as a radix for floating point numbers instead of a comma
- replaced setlocale(LC_ALL, "") with setlocale(LC_MESSAGES, ""), as suggested by Devurandom

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2546 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-12 14:33:08 +00:00
Giel van Schijndel 1dd3e33c2c * Add DirectX -> OpenGL porting tasks to EditWorld's TODO list as well
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2545 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-11 23:04:21 +00:00
Giel van Schijndel ac6069f791 * Make sure the raw Makefiles link against GLC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2543 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-11 22:55:34 +00:00
Giel van Schijndel 173f093901 * Fix tile_texpage2mipmap_tileset, it now makes imagemagick output zero-padded filenames up to 2 digits (like Warzone expects)
* Bump version numbers of tile_texpage2mipmap_tileset to 1.2

Patch by Kevin Gillette <kage>: http://forums.wz2100.net/index.php?topic=1010.msg9137#msg9137

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2542 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-11 22:47:13 +00:00
Dennis Schridde 7792f1b211 - Be more explicit about what is missing during configure and only ask the user to install something if it is not obvious what is missing.
- Check for pkg-config earlier, pkg-config 0.9 should be sufficient according to configure.
- Add pkg-config m4 file to be able to check for pkg-config where it is not installed.
- Fix typo in ChangeLog, add recent buildsystem changes.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2541 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-09 11:10:47 +00:00
Dennis Schridde 5b476bb629 Note about (not yet complete) ICC support.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2540 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-09 10:31:32 +00:00
Dennis Schridde b3b4baa9a8 Add extra escaped quotes to DATADIR define so we end up with -DDATADIR="\"...\"" -> one quote for the shell, another one for C.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2539 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-09 10:19:55 +00:00
Dennis Schridde b893291848 update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2538 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-08 20:38:16 +00:00
Dennis Schridde 122f5bf724 AC_DEFINE cannot be used for defining to-be-expanded vars and AC_DEFINE_UNQUOTED shall not (according to the autoconf manual). Additionaly AC_DEFINE_UNQUOTED does not fully expand the var, so it is useless here...
Therefore switching back to setting CFLAGS. Don't ask me why I changed it in the first place...


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2537 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-08 20:36:08 +00:00
Roman C d042bb5203 Fixed c99-style variable declaration in script_lexer.l
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2536 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-08 14:21:09 +00:00
Roman C e0dc89e031 Updated Aivolution AI to be compatible with the recent changes to the scripting functions (parameter numbers of some functions were changed).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2535 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-08 12:55:07 +00:00
Dennis Schridde 78c568d5c5 Make sure pkg-config is installed. (0.15 may be sufficient...)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2534 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-06 20:42:59 +00:00
Giel van Schijndel ad3f3442f6 * Fix a segfault introduced in r2532 which was triggered when loading *.slo scripts with #define directives in them
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2533 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-06 14:22:49 +00:00
Giel van Schijndel f7e793cf31 * Load SCRIPT files (*.slo) directly from their files rather than an intermediate memory buffer
* In function dataScriptLoad, make "printHack" a "static const" instead of a local non-const variable (emphasizes that it really is a compile-time constant; also towards the compiler btw, GCC treats a static const var as a preprocessor macro with static type checking)
 * Move global variables pScrInputFiles (formerly pScrInputBuffer), scr_include_stack_ptr, scr_num_macros, scr_macro_stack_ptr, pScrMacroBuffer and scrInclLine from script_parser.y to script_lexer.l and mark them static to disallow external linkage (to make it a little bit better encapsulated and localised)
 * Make function scriptCompile return a SCRIPT_CODE* pointer instead of a BOOL and writing the same pointer into an output pointer (instead upon failure it now returns NULL)
 * Move some of the functionality of scriptCompile to new function scriptSetInputFile instead (which is based upon scriptSetInputBuffer)
 * Modify script_lexer.l to read include files directly from the files rather than an intermediate memory buffer (by means of a modified YY_INPUT macro)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2532 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-05 22:44:18 +00:00
Giel van Schijndel 7f24fb3bfb * Load SCRIPTVAL files (*.vlo) directly from their files rather than an intermediate memory buffer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2531 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-05 18:16:02 +00:00
Giel van Schijndel 3ebad628ca * Allow QuesoGLC to fall back to a random font when we failed to load any fonts
* This should fix _the_symptoms_ of bug #10117

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2530 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-05 17:06:20 +00:00
Giel van Schijndel 9d9370e13c * Make anti-aliassing of text optional (for slower systems); it's turned on by default though (option "textantialiassing")
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2529 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-04 21:29:16 +00:00
Giel van Schijndel 7835b437e7 * Wait until *after* font-selection (selection occurs after loading) with dumping the font-face list (otherwise an empty font-face list is always shown)
* Dump the font-face list on LOG_NEVER instead of LOG_ERROR
 * Write an error to LOG_ERROR when the required font couldn't be loaded (currently hardcoded as "DejaVu Sans Mono")

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2528 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-04 19:43:38 +00:00
Giel van Schijndel 529faa799d * Replace a lot of manual string editing (by accessing/modifying the individual characters of a C string) by snprintf usage
* Replace some instances of (UBYTE)0 with '\0'
 * Refactor while loop in function intDisplayNumber with a for loop instead (which it basically was already; except for the keyword that is)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2527 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-04 17:25:26 +00:00
Giel van Schijndel 95e750f467 * Use snprintf instead of manually calculating character codes
* Replace "\x07" with unicode character U+221E encoded as UTF-8; also use strncpy instead of manual assignment to the character array (aka C string)
 * this should fix the problem where a non-sense character is printed when production looping is set to infinite

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2526 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-04 16:25:10 +00:00
Giel van Schijndel 5b1a617631 * Add note about needing to install QuesoGLC to the configure script's GLC header detection
* Add URL to QuesoGLC to the configure script's error messages about GLC

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2525 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-04 10:14:10 +00:00
Dennis Schridde 87d55b978b Basic buildfile support for ICC and silence one warning.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2524 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-02 21:43:43 +00:00
Roman C 0f37cc5854 Fixed calculation of percentage damage dealt to structures and thus leveling up of units when damaging structures.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2523 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-02 13:37:30 +00:00
Giel van Schijndel 77e4d5fda8 * Update ChangeLog for r2521 (addition of font rendering and UTF-8 handling code, based on QuesoGLC)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2522 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 23:07:03 +00:00
Giel van Schijndel d075832459 * Add font rendering and UTF-8 support through usage of QuesoGLC (an OpenGLC implementation);
* This _will_ require you to install http://quesoglc.sourceforge.net/ on your system to be able to compile (windows binaries are provided on the sourceforge download page as well; just dump them in wz's devpackage directory for now)
 * Currently the font render code is hard-coded to select two fonts: DejaVu Sans Mono regular style (aka "Book") or bold style; if you're package manager doesn't provide these fonts (Debian and derivatives have "ttf-dejavu"), you can get them from http://dejavu.sourceforge.net/

This closes #1 (https://trac.mortis.eu/warzone/ticket/1 I dumped/maintained my patch there)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2521 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 19:45:49 +00:00