Commit Graph

2010 Commits (870a53664649d4cd826a2446259a3078d92bf1df)

Author SHA1 Message Date
Giel van Schijndel 870a536646 * Initialize PhysicsFS before using it
NOTE: PieToaster ''should'' compile, link and run on GNU/Linux systems right now (it does for me)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2613 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 14:26:26 +00:00
Giel van Schijndel 498959f9bb * #include <stdint.h> where we need it
* Use proper constness in main() to shut up gcc warning about wrong constness


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2612 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 14:23:59 +00:00
Giel van Schijndel 5a91f73056 * Replace usage of SDL types Uint* and Sint* for usage of standard C types uint*_t and int*_t respectively
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2611 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 14:17:37 +00:00
Giel van Schijndel 62f1be11f1 * Use "rm -f" to shut up the darn warning messages if several of the to-delete files don't exist while cleaning
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2610 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 14:14:18 +00:00
Giel van Schijndel 579e952cb8 * Lets use the built-in bool-type instead of a dirty macro!
* replace [Bb][Oo][Oo][Ll] with bool
   * replace TRUE with true
   * replace FALSE with false

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2609 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 14:04:25 +00:00
Giel van Schijndel 8cd7f8fd5b * Replace all instances of ''_snprintf'' with ''snprintf''
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2608 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 13:43:01 +00:00
Giel van Schijndel 3344b5b01c * Fix #include directives so compiling becomes yet a bit closer to possible
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2607 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 13:34:44 +00:00
Giel van Schijndel 0bb24b12c2 * Add a ''very'' simple Makefile for compiling PieToaster
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2606 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 13:29:35 +00:00
Giel van Schijndel b2a7dd1347 * set svn:keywords
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2605 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 13:16:52 +00:00
Giel van Schijndel c6392febca * Link PieToaster's sources to the repository history
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2604 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 13:12:10 +00:00
Giel van Schijndel 26a1f19cfe * Add initial version of PieToaster
* Developed by Carl Hee <Watermelon>
   * Licensed under the conditions of the GPLv3


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2603 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-24 12:29:36 +00:00
Per Inge Mathisen dd4898fe2f Beginnings of a new savegame format. Each time you save, a new file with the
extension .wzs is added to your savegame directory. This is the new world.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2602 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-23 20:52:51 +00:00
Giel van Schijndel 6f0ebde13e * Add lib/framework/tagfile.[ch] to MSVC project file ( this addresses part of bug #10190 )
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2601 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-23 20:48:15 +00:00
Per Inge Mathisen 45988bd322 Also add definition used in unit test for tagfile bools.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2600 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-23 20:22:00 +00:00
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