Commit Graph

2196 Commits (f577a8f2690a10737a40c23f53375c0dbbd79475)

Author SHA1 Message Date
Per Inge Mathisen 6cf0e01f0b Add write and read methods for bools to tagfile framework. Remove enum write macro.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2599 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-23 20:21:18 +00:00
Per Inge Mathisen 76031cd173 Dump dead code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2598 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-23 18:41:02 +00:00
Per Inge Mathisen 9ec705bd9c Add new debug tag LOG_MAP
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2597 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-23 18:18:48 +00:00
Per Inge Mathisen 4b3f1a4850 Remove dead code in warcam.c and make camera global static.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2596 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-23 15:07:44 +00:00
Giel van Schijndel 95caee7a1f * Don't (re)initialize the text render module upon calling iV_Reset() anymore
* Remove iV_Reset() call from src/levels.c which is there only to prevent a crash caused by the *OLD* font rendering code
 * Make sure to initalize the font rendering module (by calling iv_TextInit()) in init.c:systemInitialize()


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2593 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 22:51:44 +00:00
Dennis Schridde d5601ebc91 Found a version of the STATIC_ASSERT which also works in global scope.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2592 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 20:53:27 +00:00
Per Inge Mathisen 3e04847d4d No longer any need to call iV_Reset() every time a MP game is load to avoid
a crash bug in the old font code.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2590 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 20:10:42 +00:00
Per Inge Mathisen ffc1f75aac Silence asserts going off on working separator tags in tagfile code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2589 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 20:09:55 +00:00
Giel van Schijndel ec353ec182 * Add lib/framework/tagfile.[ch] to Code::Blocks projectfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2588 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 20:07:39 +00:00
Per Inge Mathisen 3bd357ed08 Fix some mistakes and remove debug printfs from tagfile code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2587 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 19:33:47 +00:00
Per Inge Mathisen c9b25c5738 Add the tagfile framework that we will use for our new savegame format, and related
unit tests. First sketch of new defined savegame format in tagfile_map.def.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2586 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 18:40:34 +00:00
Giel van Schijndel 09fbe980c0 * Set svn:eol-style to native
* Set svn:mime-type to text/x-rst to get Wiki-like markup in Python-powered viewers
 * Make the TODO file be valid reStructured Text

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2584 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 11:08:49 +00:00
Giel van Schijndel eef217fc4a * Make some EditWorld documents be valid reStructured Text
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2583 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 00:38:08 +00:00
Giel van Schijndel e2b59e8dc1 * Revert r2581, as aparently r2580 _did_ work well (I just needed python-docutils installed)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2582 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 00:12:54 +00:00
Giel van Schijndel f76a7bbcb6 * Set svn:mime-type to text/x-trac-wiki to get Wiki-like markup in Trac (r2580 didn't work very well)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2581 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-21 23:22:12 +00:00
Giel van Schijndel 03629c04ab * Set svn:mime-type to text/x-rst to get Wiki-like markup in Python-powered viewers
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2580 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-21 22:29:03 +00:00
Giel van Schijndel 9c3db2f6e6 * Add building of Autorevision to the automake build-system
* Make the automake build-system use Autorevision to produce src/autorevision.h
   * Add it to the clean-local target as well!
 * Ignore src/autorevision.h (in "svn status")


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2579 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-21 18:53:24 +00:00
Giel van Schijndel ae8c4b6d2f Autorevision:
* Make function WriteOutput const-correct
 * Mark global variables static
 * Add commandline option "+cstr" which results in Autorevision adding a C-style string into the produced header file
 * When no revision information could be extracted from a working copy give an error message
 * Add some comments
 * Move some variables into a more local scope
 * Don't use member function .close() on iostreams just before leaving scope (the destructor will take care of that!)
 * Don't write the header file in binary mode
 * Fix handling of do_translate
 * Now DO dump revision date as well
 * Add double-quotes around strings


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2578 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-21 17:02:16 +00:00
Giel van Schijndel 355c7a6b0b Autorevision:
* Use C++ iostreams for output as well as input (which was already being used)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2577 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-21 15:50:50 +00:00
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