Anonymissimus
ec1fb266c5
fixed an MSVC10 warning...
...
...(variable_info is a class not struct - why did it not warn earlier
about this, the line isn't new!)
2011-09-09 14:27:27 +00:00
Anonymissimus
252a829121
VC10 projectfile update
2011-09-09 14:27:10 +00:00
Anonymissimus
9b9839bebf
CB projectfile update
2011-09-09 14:26:51 +00:00
Sergey Popov
164d927c59
Fixed another blatant memory leak.
2011-09-09 11:35:43 +00:00
Sergey Popov
f1eda25fd4
Converted remaining z_emptys to function calls.
...
This finally fixes startup segfault with my version of gcc.
2011-09-09 11:05:52 +00:00
Sergey Popov
3189eb4597
Fixed a blatant memory leak.
2011-09-09 11:05:42 +00:00
Thonsew
1828d8f1d9
Added a member function t_token::default_value<char >()...
...
...to create static initialization safe default values for parameters.
2011-09-09 07:39:08 +00:00
Gabriel Morin
42b5b0391f
Make whiteboard methods to set and remove future unit map private,
...
...as they're only supposed to be accessed through the scoped_*
structs. Reorder a few methods in manager.cpp to match order in
manager.hpp
2011-09-09 02:58:34 +00:00
Gabriel Morin
3e1809d2a4
More debug messages to diagnose better failed activations of the future unit map.
2011-09-09 02:30:31 +00:00
Gabriel Morin
951eeb2f99
Corrected now-erroneous comment.
2011-09-09 02:20:57 +00:00
Gabriel Morin
0a23712aaf
Moved the Tab key polling to be called from the key event code...
...
...rather than from draw; fixes crash bug with Tab-attacking when the
whiteboard is activated, or holding Tab then opening the context menu.
2011-09-09 02:01:32 +00:00
Gabriel Morin
0312368c40
Add a mechanism to prevent the whiteboard...
...
...from changing its activation state as long as a reference is held.
2011-09-09 02:01:19 +00:00
Steven Panek
f425c3cdb3
Improved liminal entry.
2011-09-08 23:14:38 +00:00
Steven Panek
446341f666
Ran umcpropfix.
2011-09-08 22:54:32 +00:00
Thonsew
516ceea078
Another possible partial fix to static initialization fiasco
2011-09-08 22:30:49 +00:00
Thonsew
ebd9ec1f71
Attempt to fix static initialization problem in unit_frame.cpp...
...
...for compilers different than my own.
2011-09-08 21:21:30 +00:00
Gabriel Morin
9d17ec0834
Modified how whiteboard planned attacks are created...
...
...so that factors like adjacent leaders (already present or planned
to be recruited/moved nearby) are taken in to account in the weapon
choice dialog.
Fixes bug #16856
2011-09-08 20:53:08 +00:00
Thonsew
2b29c157f2
Changed uint to unsigned int
2011-09-08 20:46:44 +00:00
Thonsew
ab02a76b57
Removed unintentional perf.data from trunk.
2011-09-08 19:34:13 +00:00
Mark de Wever
28a2ae16fe
Fix a gcc warning.
2011-09-08 19:33:54 +00:00
Mark de Wever
9fe0b37bdf
Add a missing virtual destructor.
2011-09-08 19:33:51 +00:00
Mark de Wever
bae50a5556
Remove a not allowed typename.
2011-09-08 19:33:48 +00:00
Mark de Wever
d0b97762ad
Add the newly added file to cmake.
2011-09-08 19:33:45 +00:00
Mark de Wever
10ae03fc99
Fix a gcc warning.
2011-09-08 19:23:49 +00:00
Mark de Wever
053ea6f383
Remove a not allowed typename.
2011-09-08 19:23:45 +00:00
Thonsew
622421be99
Added liminal t_token
2011-09-08 19:18:02 +00:00
Thonsew
1a5810656b
[[t_token optimizations]]
...
1. Updated terrain_builder to use t_token in place of std::string to
facilitate fast copying, hashing and comparison
2. Added utils::parenthetical_split_token, a cached parenthetical
version of the string version
3. Made the lru_cache faster for the cache miss case.
2011-09-08 19:17:55 +00:00
Thonsew
d56fbf14fe
Upgraded unit_animation and unit_frame to use t_token and t_interned.
...
1. Changed std::strings to t_token when used as indices.
2. Made a frame_parsed_parameters token resulting in upto 25% memory
savings if unit animations are on for a large variety of units.
2011-09-08 19:17:48 +00:00
Thonsew
7e99017fa4
Updated image.cpp to
...
1. Use t_token in place of std:string to save on string construction
2. Use boost::unordered_map in place of std::map as per todo by silene
2011-09-08 19:17:41 +00:00
Thonsew
3a41db7acd
Updated unit_types to use t_token...
...
...in place of std::string and to replace std::map with
boost::unordered_map in the t_move_cost_cache, both to increase speed.
2011-09-08 19:17:31 +00:00
Thonsew
82e7d2c6f8
Made load dialog faster when there are many saved games.
...
1. Added a child_range_index member function to config to generate an index
2. Changed the load dialog from the O(N^2) search for saved games to a
O(N) listing.
2011-09-08 19:17:20 +00:00
Thonsew
81c2162d93
Made config::child_range re-entrant.
2011-09-08 19:17:04 +00:00
Thonsew
787e123761
Updated tod_manager to use t_tokens.
2011-09-08 19:16:57 +00:00
Thonsew
9ce82aec1a
Upgraded game_events.cpp...
...
...and files that interacted with game_events to use t_token in place
of std::string for config objects
2011-09-08 19:16:49 +00:00
Thonsew
2f2cefad5c
Changed serialization/tokenizer to use config::t_token to speed up parsing
2011-09-08 19:16:39 +00:00
Thonsew
4637a2586f
Added a valgrind memcheck suppression file...
...
...for suppression of static initialization allocation without a
delete warnings
2011-09-08 19:16:33 +00:00
Thonsew
576a3feab1
Updated parts of unit class to use t_token...
...
...in place of std:string in order to speed up comparisons, copies and
hashing which are 1 cycle operations.
Added z_sub t_token.
Added lru_cache unit test
2011-09-08 19:16:26 +00:00
Thonsew
abb678b080
Updated actions.cpp to use t_token in place of string literals
2011-09-08 19:16:18 +00:00
Thonsew
fcba175936
Updated terrain_filter to
...
1. Use t_token in place of string literals to improve speed
2. Use unordered_set in place of std::set to improve terrain filter
lookup times.
2011-09-08 19:16:12 +00:00
Thonsew
2bf6377351
Changed config and vconfig to use a token representation...
...
...t_token in place of std::string. t_token compares, copies, copy
constructs and hashes in 1 operation instead of proportional to the
length of the string.
2011-09-08 19:16:01 +00:00
Thonsew
87c99119d3
Added split_token to string utils
2011-09-08 19:15:53 +00:00
Thonsew
87b5cd1ec4
Updated tstring to use t_token as a replacement for string...
...
...to speed up comparisons, copying and hashing.
2011-09-08 19:15:47 +00:00
Thonsew
3d29107eff
Refactored string interpolation to use tokens to improve speed...
...
...once token are used in config
Added unit tests for string interpolation
2011-09-08 19:15:40 +00:00
Steven Panek
20f0d2ba7f
Stripped obsolete translations from the British English translation.
2011-09-08 18:22:22 +00:00
Fabian Müller
8a85e73f72
Removed an invalid test for the [tunnel] tag.
2011-09-08 17:37:51 +00:00
Fabian Müller
84c5e1bbae
Test case: Made Kaleh liminal
2011-09-08 17:32:06 +00:00
Fabian Müller
4954c1bd88
Added a tip for the liminal alignment.
2011-09-08 16:39:36 +00:00
Fabian Müller
c1deb5f608
Updated the manual to cover the liminal alignment.
2011-09-08 12:03:36 +00:00
Fabian Müller
6f14bb59ce
Reimplemented the liminal alignment.
2011-09-08 04:14:47 +00:00
Gabriel Morin
192e7a017e
Completely removed the waypoint functionality on 'w' key,
...
...since the whiteboard is now an adequate replacement.
Fixes bug #17060
2011-09-08 00:52:38 +00:00