Commit graph

57 commits

Author SHA1 Message Date
Enno Rehling
8619bd74a8 slow but working solution for getspell. rebuilding that radix tree for every call is insanity. 2012-05-26 09:05:03 -07:00
Enno Rehling
92e96689bb spellbooks fully operational (and could be loaded from XML definitions if I had them)
fixed the cleanup between tests to properly free locales
2012-05-23 20:22:12 -07:00
Enno Rehling
31e4a8432b fix find_spell and create_spell to only create each spell once.
kill register_spell
make some critbit changes (need to transfer them upstream)
2012-05-22 18:44:54 -07:00
Enno Rehling
1e9c10fbe2 finditemtype works as tested.
starting to think about removing default_locale in lieu of a hierarchical system.
2012-05-21 13:18:05 -07:00
Enno Rehling
71f1e35f6d fix an odd edge-case where there is only a byte left in the destination string, but we're parsing a utf8 character. 2012-05-19 13:10:19 -07:00
Enno Rehling
b44737387a fix broken tests and clear locales (badly) when clearing global stte 2012-05-19 20:49:47 +02:00
Enno Rehling
7f7c883583 rt_find and it_find use new improved critbit-tree
critbit update
testing the test suite
2012-05-19 11:26:46 -07:00
Enno Rehling
ff5dc2534e rename _log_debug to log_debug and get rid of the cumbersome #define 2012-05-16 16:56:07 -07:00
Enno Rehling
ecbe770fce rename _log_error to log_error and get rid of the cumbersome #define 2012-05-16 16:52:01 -07:00
Enno Rehling
14d62afb0d rename _log_warn to log_warning and get rid of the cumbersome #define 2012-05-16 15:52:37 -07:00
Enno Rehling
9065334677 eressea-pbem.de no longer exists
improve default_order generation, save memory.
2012-05-16 13:07:28 -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
21a49b1660 log_rotate function to fight the increasingly huge logfiles 2012-05-16 09:11:49 +02:00
Enno Rehling
b0959398d8 log library refactoring, first steps 2012-05-16 07:21:59 +02:00
Enno Rehling
64f1ceecf5 logging has a debug/info option now
fixed a bug in the umluaut_test, was not initializing the tnode.
2012-05-16 01:56:25 +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
77110158f9 find_function is one of our more frequently called functions, and it can probably do with a little more performance. Let's see if this helps. 2012-05-15 00:19:25 -07:00
Enno Rehling
2d2f566634 A function to transliterate German special characters, for future use. 2012-05-15 00:06:27 -07:00
Enno Rehling
f8cadfebee test suite for the crazy stuff that umlaut.c does. 2012-05-14 20:08:11 -07:00
Enno Rehling
2638f42eca putting the crit-bit tree to use. findingfunctions is faster this way than that hand-rolled list 2012-05-14 17:02:15 -07:00
Enno Rehling
53b9de957c putting the crit-bit tree to use. finding special region resources is faster this way than doing individual strcmp calls. 2012-05-14 16:36:17 -07:00
Enno Rehling
3a8f682bea remove now-obsolete function 2012-05-14 14:16:56 -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
e272a00994 add test for that weird function-lookup module before I refactor it. 2012-05-14 13:09:57 -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
80a907d78f repair units that are toads without a time-limit. 2012-04-07 18:11:58 -07:00
Enno Rehling
a2816f1528 fix_familiars had a bug caused by quicklist 2011-05-02 23:27:39 -07: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
7a983c80cf * there are no boats
* skill should only use 4 bytes
2011-03-06 22:06:30 -08:00
Enno Rehling
d672510f06 two little remarks 2011-03-06 12:43:39 +01:00
Enno Rehling
7fd2852f3b fixed error with option window dimensions in gmtool 2011-03-03 15:10:20 +01:00
Enno Rehling
42eb0ef0ed remove cvector.[hc] completely 2011-02-27 20:49:38 -08:00
Enno Rehling
1fbe46ddfe test for emptiness of a list (it's super-simple) 2011-02-27 12:14:16 -08:00
Enno Rehling
e6f6061819 quicklist.replace makes changes to the content 2011-02-27 11:49:01 -08:00
Enno Rehling
09f2286b82 use malloc. change indentation. 2011-02-27 11:24:51 -08:00
Enno Rehling
10e64c59e1 Some old files that weren't in use. Goodbye. 2011-02-27 02:57:28 -08:00
Enno Rehling
12c3324850 When running --tests, messages cannot be created (externally defined), so that isn't an error we are interested in. 2011-02-27 00:11:34 -08:00
Enno Rehling
916e5389c7 include the correct header on linux 2011-02-27 08:01:23 +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
4fa45d6449 tcc support added 2011-02-26 10:21:10 +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
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
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
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
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