Commit Graph

97 Commits

Author SHA1 Message Date
Enno Rehling 7b6a719a62 findparam improvements!
removed findbuildingtype from findparam
separate isparam() function that I can optimize later
2012-05-16 12:06:44 -07:00
Enno Rehling 53d35213b6 Merge branch 'master' of gitorious.org:eressea/server
Clean up all warnings that Visual C++ didn't find

Conflicts:
	shared/src/util/umlaut.c
	shared/src/util/umlaut_test.c
2012-05-16 09:48:01 +02:00
Enno Rehling b0959398d8 log library refactoring, first steps 2012-05-16 07:21:59 +02:00
Enno Rehling 116a1ee8ba remove tnode from anywhere, and use a void* instead, in preparation for a new findtoken implementation. this needs to have a good testing.
lots of warning fixes for high warning levels in visual studio also
2012-05-15 15:04:23 -07:00
Enno Rehling 53bc4eee11 remove viewrange, because it's not used very much (was used for one quest only)
add my crit-bit implementation. to be used soon.
2012-05-14 14:16:02 -07:00
Enno Rehling c10e2552ad get_spellfromtoken needs a mage, not any unit. 2012-05-09 13:06:16 -07:00
Enno Rehling c22f49ec36 replace spellid_t with unsigned int
fix finding spells by token
make magic_t an enum
2012-05-09 03:14:54 -07:00
Enno Rehling ae31948dc5 fix a crash when wolves are cast with too little force 2012-04-16 06:56:44 +02:00
Enno Rehling 52013f0e7c faction stealth is only selectively enabled in E3 2012-03-04 19:21:00 -08:00
Enno Rehling 2aa3acf56a do not crash when terraforming land regions with road in them (oceans cannot have roads) 2011-06-04 18:37:02 +02:00
Enno Rehling 17d339b196 http://bugs.eressea.de/view.php?id=1851 spy messages have too many arguments 2011-04-29 21:50:12 -07:00
Enno Rehling 813d75f820 fixing spy messages (wrong arguments cause crash). 2011-03-19 11:06:03 -07:00
Enno Rehling 8d497e4b50 change the way the market tests are included. 2011-03-15 20:00:54 -07:00
Enno Rehling 89b3b3161f Add a test for the effect of buildings in battles, and a file to test pieces of the combat code from C in the future.
Add some testing support for terrains and buildings.
2011-03-12 17:01:20 -08:00
Enno Rehling 8fca34e824 SUITE_ADD_TEST is a macro and doesn't want this syntax 2011-03-12 16:58:12 -08:00
Enno Rehling f0039bc58f added spy to spy messages (see #1604) 2011-03-09 21:00:19 +01:00
Enno Rehling 5bf42bd8e9 make laws_tests more stand-alone 2011-03-08 21:18:35 -08:00
Enno Rehling 54d05f8544 MSVC warns about unreachable code. 2011-03-07 23:46:56 -08:00
Enno Rehling b4c5607747 compiling with -pedantic on linux 2011-03-08 08:44:20 +01:00
Enno Rehling 04b3d7ff45 use enums, fix typecasts 2011-03-07 22:31:06 -08:00
Enno Rehling 496aa22e65 fixes for -ansi -pedantic 2011-03-07 17:29:19 +01:00
Enno Rehling 9c8779b303 indentation rules, slightly updated 2011-03-07 08:24:52 +01:00
Enno Rehling fb7a642d47 indentation rules, strictly applied 2011-03-07 08:02:35 +01:00
Enno Rehling d75ee1a057 Make the code compile on Visual Studio again, fixing type conversion warnings and C99-isms.
Signed-off-by: Enno Rehling <enno@eressea.de>
2011-03-06 19:29:20 -08:00
Enno Rehling cb4f7a03c6 configurable ship damage 2011-03-06 12:43:18 +01: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 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 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 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 d479075c53 Testing util is no longer such an include-weirdness. 2011-02-23 23:23:32 -08:00
Enno Rehling f5b4b1ff99 Merged a bugfix for omniscient factions from stm. 2011-02-15 23:06:26 -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 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 33100abebb http://bugs.eressea.de/view.php?id=1585
prevent prospecting-exploit
2010-11-02 22:23:04 -07:00
Enno Rehling 279fa623d9 Make sure static data expires. 2010-10-31 19:32:24 -07: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
Enno Rehling 6ce601828b this is probably correct with respect to http://bugs.eressea.de/view.php?id=1808 2010-10-05 22:10:44 -07:00
Enno Rehling f934772a66 cleaning up a little, no change to logic 2010-09-02 23:29:33 -07:00
Enno Rehling db8f2f7d0c do not damage ships with no owner while still in production 2010-09-02 23:25:25 -07:00
Enno Rehling 366035510c fixing building renaming
http://bugs.eressea.de/view.php?id=1798
foreign/owned was swapped
2010-08-17 22:32:36 -07:00
Enno Rehling 3d5f7a92b8 http://bugs.eressea.de/view.php?id=1788
renaming buildings should finally work again.
2010-08-10 23:33:38 -07:00
Enno Rehling beec74e0c6 Clearing every mage's spell-list before each turn is counter-productive. It destroys tests, and it doesn't let us have special spells added per-unit. 2010-08-08 23:39:21 -07:00
Enno Rehling 240aae8c58 bugfix, test crash 2010-08-08 12:04:08 +02:00
Enno Rehling a5e712580f undo more CRLF screwups. 2010-08-08 01:14:01 -07:00
Enno Rehling 14b3ed309f use external folder for all libraries (VS2010)
new repository structure
2010-08-07 23:05:54 -07:00
Enno Rehling 72505ab8f3 moving to a new repository layout.
step 1: shared folder.
2010-08-07 22:07:17 -07:00