32 Commits

Author SHA1 Message Date
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Eric S. Raymond
c7dac51c3d Change the t_letter type to t_terrain. They aren't single letters any more. 2008-02-12 13:36:23 +00:00
Mark de Wever
1c3f7e6f45 Silence a warning in the copy constructor. 2007-12-12 21:04:46 +00:00
Mark de Wever
c20b773c42 wassert -> assert 2007-12-10 19:06:26 +00:00
Patrick Parker
fbf763568f change a silent error check into an assertion 2007-12-10 03:42:17 +00:00
Patrick Parker
8f54188a39 fix a problem with the new handling code for filter_adjacent_location
would only manifest when match() was called with multiple
filter_adjacent_location
2007-12-10 03:37:17 +00:00
Mark de Wever
070310d657 Make trunk compile again with GCC-3.3. 2007-12-09 18:34:16 +00:00
Patrick Parker
ca89b9c9fa fixed: [filter_radius] now supports [and][or][not] and radius=
converted terrain_filter into a proper class and cleaned up the code for it
2007-12-09 08:39:24 +00:00
Mark de Wever
d003deba48 Avoid variable.hpp to be included in the .cpp and .hpp of the same file. 2007-11-23 05:42:42 +00:00
Patrick Parker
a7b7e35add now radius expansion is handled last in Standard Location Filters;
previously it was handled last except before [and], [or], and [not]

note: this allows more advanced uses of the radius expansion feature
2007-09-05 03:55:02 +00:00
Patrick Parker
cb29743eab rename [filter_adjacent] in SLF to [filter_adjacent_location]
(to avoid confusion)
2007-09-05 00:01:40 +00:00
Patrick Parker
2ec6f3852d a second attempt to silence the harmless signed/unsigned comparison,
this time making it even uglier-looking
2007-09-04 21:46:38 +00:00
Patrick Parker
a919f6943f silence some harmless signed/unsigned comparisons 2007-09-04 21:19:39 +00:00
Patrick Parker
67686d6d9a prevent the adjacent location filter cache from accessing invalid vector index 2007-09-04 04:19:28 +00:00
Patrick Parker
81ec992c38 now [filter_adjacent] is supported in SLF
clean up the [filter_adjacent] code in SUF
2007-09-04 03:39:48 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Patrick Parker
1dbf802d7a minor correction to location filtering:
locations not on the map are considered to be on a recall list
2007-08-26 01:51:44 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Patrick Parker
acb97a77a8 locations not on the map should instantly fail to location filter 2007-08-10 00:08:05 +00:00
Patrick Parker
2754934d56 fix a bad typo with the [and]-handling of the multi-location filter 2007-08-09 22:32:38 +00:00
Mark de Wever
4bac696917 rename map.x() to map.w() and map.y() to map.h().
remove the duplicates named map.xsize() and map.ysize().
2007-08-09 16:37:08 +00:00
Patrick Parker
56e0560858 moving some WML variable code around and cleaning it up
now find_in= should work if you use the same variable for search and storage
2007-08-06 06:50:04 +00:00
Patrick Parker
f984170cdd add some utility methods for variable_info 2007-08-05 20:56:23 +00:00
Patrick Parker
fdb93ceb2b coded the multi-location optimized version of find_in= for get_locations() 2007-08-04 23:42:31 +00:00
Patrick Parker
f0afaf3673 major code cleanup for WML variable retrieval, and a new feature
* fix a bug where containers could only be stored at the top-level

* fix a bug where both x and y had to be specified in location filters

* no longer needs to store __length reserved keyword inside array
  variables

* better handling/reporting of invalid WML variable type usage

* new key find_in= to allow searching a variable of previously stored 
  locations when using the standard location filter
2007-08-04 22:42:42 +00:00
Patrick Parker
1db2e3bfcd new tag [filter_radius]
to allow greater control over radius expansion when using the standard
location filter
2007-08-04 12:43:20 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Patrick Parker
d5f111bf79 updated some deprecated WML syntax handling 2007-07-14 15:57:59 +00:00
Patrick Parker
af7aedda3d remove an incorrect optimization (actually caused more work) 2007-07-14 13:22:34 +00:00
Patrick Parker
b491400a3f prevent unnecessary copying of the gamemap
and use the pass-by-reference model when NULL pointers are not needed
2007-07-14 09:46:07 +00:00
Eric S. Raymond
40889aed55 Arrange for keyword expansion. 2007-07-01 18:59:56 +00:00
Eric S. Raymond
10a97953f4 The Standard Terrain Filter belongs in its own module.
This is the first of two commits that will move it.
2007-07-01 16:56:41 +00:00