Commit Graph

75 Commits

Author SHA1 Message Date
Enno Rehling 916e5389c7 include the correct header on linux 2011-02-27 08:01:23 +01:00
Enno Rehling c810b72845 Some test requires that a cart exists.
Meropis gets its own list of items.
2011-02-26 22:57:42 -08:00
Enno Rehling 611fe8e2a1 adding a os module for os-specific functions (mkdir in this case). 2011-02-26 22:56:14 -08:00
Enno Rehling 665d4aec4d Test framework broken, we were adding the wrong spell with the right name. 2011-02-26 10:07:49 -08:00
Enno Rehling 4fa45d6449 tcc support added 2011-02-26 10:21:10 +01:00
Enno Rehling 2e67e9c290 gcc wants us to define this struct, and that's correct 2011-02-26 09:33:20 +01:00
Enno Rehling b2d6203cec 1. spell_list was pretty much used everywhere in the code, and is now also a quicklist.
2. Cleaned up the bindings for quicklist to Lua.
2011-02-26 00:26:14 -08:00
Enno Rehling b28fa19d01 Even if equipment is not very frequently used, there's no need for it to use spell_list structs. 2011-02-25 18:16:14 -08:00
Enno Rehling fd2b30a0ff messagetype_list, another special-cased list type, bites the dust and is replaced by the quicklist. 2011-02-25 08:04:25 -08:00
Enno Rehling c278a3b71f cursetype_list, another special-cased list type, bites the dust and is replaced by the quicklist. 2011-02-25 07:56:00 -08:00
Enno Rehling 5e21579036 another special-cased list type bites the dust and is replaced by the quicklist. 2011-02-25 07:47:35 -08:00
Enno Rehling 5497875c93 Funny. It turns out that building_list is totally not a thing and never was. 2011-02-25 07:41:51 -08:00
Enno Rehling 14dff6cdfa seen_factions is a quicklist, and the faction_list struct is a thing of the past. 2011-02-25 07:27:44 -08:00
Enno Rehling efca8cee43 The list of alliance members is now also a quicklist, and the lua binding for faction_list iteration can disappear. 2011-02-25 07:23:02 -08:00
Enno Rehling d2994d816a the oceannames has never been used. git history does not forget, so deleting is fine. 2011-02-24 23:25:54 -08:00
Enno Rehling 831de3dd55 the report's address list is now a quicklist. A bit faster perhaps, and less memory? One less reason to have the faction_list struct, at least. 2011-02-24 22:29:21 -08:00
Enno Rehling a538c52bc4 quicklists can be used as a set of pointers (this will be useful). 2011-02-24 22:27:04 -08:00
Enno Rehling 372908a9af gcc complains about typedefs for the same struct twice 2011-02-24 08:29:48 +01:00
Enno Rehling 0c2ccf2d20 We do not require unit_list, quicklists are the future. 2011-02-23 23:26:15 -08:00
Enno Rehling d479075c53 Testing util is no longer such an include-weirdness. 2011-02-23 23:23:32 -08:00
Enno Rehling 16d86413d5 add tests for quicklist. Fix the inevitable bug. 2011-02-23 23:22:31 -08:00
Enno Rehling 1cae5e2283 Added quicklist, a linked list with better cache characteristics. 2011-02-23 22:18:58 -08:00
Enno Rehling 0adf7899dd cleaning up the lists functionality a bit. I have plans. 2011-02-21 22:00:03 -08:00
Enno Rehling e8d00d8744 test error conditions fixed by the last commit. 2011-02-19 06:15:15 -08:00
Enno Rehling d033e7156c Simple tests for persistent attributes and a fix. 2011-02-19 06:13:24 -08:00
Enno Rehling 204924c35a http://bugs.eressea.de/view.php?id=1810
Only rich peasants were dying during the plague (and paying for it)
2011-02-15 23:34:00 -08:00
Enno Rehling 8f327f7165 array-indexing error in error message discovered by stm. 2011-02-15 23:31:22 -08:00
Enno Rehling 42c5331f1b http://bugs.eressea.de/view.php?id=1833
There's a pretty bad problem with watchers in older datafiles.
2011-02-15 23:28:09 -08:00
Enno Rehling f5b4b1ff99 Merged a bugfix for omniscient factions from stm. 2011-02-15 23:06:26 -08:00
Enno Rehling b07f40c02e test the bson functionality, and provide examples for using it 2011-02-06 08:41:14 +01:00
Enno Rehling ad4f4f59f0 bson attributes can be on anything now 2011-02-06 08:11:40 +01:00
Enno Rehling dec5bb8834 code cleanup 2011-02-05 23:01:51 -08:00
Enno Rehling e0d70b096a http://bugs.eressea.de/view.php?id=1825
giving command to empty units is a mistake.
2010-12-04 17:35:49 -08:00
Enno Rehling c421cf0677 move some messages to a different section in the report, because they are important. 2010-11-13 13:09:59 -08:00
Enno Rehling d3a7d22253 http://bugs.eressea.de/view.php?id=1679
Applying a patch provided by Solthar: Server will give error when unit is given more than one long order.
I just added a test to this.
2010-11-11 20:11:19 -08:00
Enno Rehling e7ce28a258 http://bugs.eressea.de/view.php?id=1814
fix a quoting bug in the order parser,
add a very basic test to make sure order parsing works.
2010-11-05 22:54:29 -07:00
Enno Rehling 12828f0edd for planes that have no name, do not print a comma after the coordinates (this has irritated me in E3).
also: add tests for this, and add a way to assert on content in reports.
2010-11-05 21:21:49 -07:00
Enno Rehling 33100abebb http://bugs.eressea.de/view.php?id=1585
prevent prospecting-exploit
2010-11-02 22:23:04 -07:00
Enno Rehling 0472c35647 * clean up the test setup
* test horses, carts and their capacities
2010-10-31 23:31:56 -07:00
Enno Rehling c5418fc28b E3 does not have a boat, so tests needs to create a canoe sometimes 2010-10-31 19:46:08 -07:00
Enno Rehling 101ff092d5 new test: verify that units swim after terraforming, and can get picked up by boats in the turn thereafter. 2010-10-31 19:34:55 -07:00
Enno Rehling 321c0816f6 harmless code beautification 2010-10-31 19:33:18 -07:00
Enno Rehling 279fa623d9 Make sure static data expires. 2010-10-31 19:32:24 -07:00
Enno Rehling 03fd39ac63 Idiotic Visual Studio has no separate C and C++ modes, and puts curly lines under the word "friend". So they can't be called that. 2010-10-31 19:31:45 -07:00
Enno Rehling fa6ea0a626 http://bugs.eressea.de/view.php?id=1811
BTF_INDESTRUCTIBLE buildings were not indestructible
2010-10-17 17:24:10 -07:00
Enno Rehling b25d96a015 Merge branch 'master' of gitorious.org:eressea/server 2010-10-16 21:12:11 -07:00
Enno Rehling 49a9992896 bindings for ship.coast 2010-10-16 21:10:46 -07:00
Enno Rehling 357de0f249 fix a crash where flying ships try to anchor 2010-10-16 22:18:30 +02:00
Enno Rehling ed77af5261 http://bugs.eressea.de/view.php?id=1784
espionage should show the faction of the spied unit in the report.
2010-10-12 23:17:35 -07:00
Enno Rehling f1f46782f7 * fix some rules to not use static variables across multiple runs
* add tests for upkeep
* add a config setting to disable upkeep in tests
* add a config setting to disable random factor in studying
2010-10-08 23:39:16 -07:00