Oleg Tsarev
92d3f47a04
Revert back incorrect changes introduced by 4 previous revisions
2012-02-26 01:49:16 +00:00
Oleg Tsarev
5f9be8c8ad
Now I call set_modified after rebuild info in save_index.
...
It prevents the reload summary from save file
2012-02-26 00:57:49 +00:00
Oleg Tsarev
c348e4a264
Fixed error from previous commit
2012-02-26 00:42:10 +00:00
Oleg Tsarev
8e0e250463
Fixed error from previous commit
2012-02-26 00:38:44 +00:00
Oleg Tsarev
137ea6a9ef
Fixed the update of save_index.
...
Now I first wait while file would be written, and after that rebuild
index from saved file
2012-02-26 00:36:21 +00:00
Ignacio R. Morelle
cd28fbfaa0
addon/info: New display_type() class method
...
Used to be <anonymous>::get_translatable_addon_type() in addon/manager_ui.cpp.
2012-02-26 00:28:29 +00:00
Oleg Tsarev
24b4cfa4e1
Save changes in save_index after remove the information
2012-02-26 00:01:38 +00:00
Steven Panek
ab12593f82
Ran umcpropfix.
2012-02-25 23:29:46 +00:00
Ignacio R. Morelle
a535f59fda
addon/info: New display_title() class method
...
Used to be <anonymous>::auto_addon_title() in addon/manager_ui.cpp.
2012-02-25 22:05:17 +00:00
Ignacio R. Morelle
1c80791474
addon/info: Move make_addon_title() from addon/manager.cpp
2012-02-25 22:05:01 +00:00
Anonymissimus
d1360bff02
modify_unit: re-add part of the "kill units" behavior...
...
...which I removed in 2012-01-22T22:35:44Z!anonymissimus@arcor.de
(fix for bug #19498 )
2012-02-25 20:49:43 +00:00
Anonymissimus
db9c2d6f13
strip some trailing whitespace
2012-02-25 20:49:04 +00:00
Ignacio R. Morelle
40af2f47d2
addon/validation: Simplify addon_name_legal()
...
Instead of using generic STL algorithms, use std::basic_string<...>
member methods that are presumably better optimized to work with
strings. In particular, use find_first_of() instead of repeated calls to
the find algorithm.
Also get rid of a redundant and suboptimal check for an empty string.
2012-02-25 19:45:38 +00:00
Steven Panek
acbfa7d79b
Extended 2012-02-22T22:21:00Z!alarantalara@gmail.com to the regular Wolf.
2012-02-25 19:08:07 +00:00
Anonymissimus
8a1af406f3
VC9 projectfile update
2012-02-25 18:01:21 +00:00
Anonymissimus
8457d8b8ef
change "Trying to recall unit failed!" error to emit useful information
2012-02-25 18:01:06 +00:00
Anonymissimus
e6d88f55d9
let a warning have more information
2012-02-25 18:00:29 +00:00
Oleg Tsarev
e96c623eea
Fixed bug #19495 : stderr spam about missing savefiles
2012-02-25 17:56:57 +00:00
Ignacio R. Morelle
0d692f13e9
addon/validation: Add unit test suite
...
Only addon_name_legal() is covered right now.
2012-02-25 07:41:12 +00:00
Ignacio R. Morelle
f3f89c5e8f
addon/mg: Get rid of a lot of duplicate logic in uninstall_local_addons()
...
This removes prepare_addons_list_for_display(), which is just part of a
very round-about duplicate callpath that is equivalent to
installed_addons().
2012-02-25 07:08:10 +00:00
Ignacio R. Morelle
c49045378a
gui2/taddon_uninstall_list: Use make_addon_title()...
...
...instead of an identical <anonymous>::make_addon_name() function
2012-02-25 07:07:43 +00:00
Ignacio R. Morelle
b1105366d5
ai/composite: Use normal #include instead of system #include
2012-02-25 05:40:07 +00:00
Ignacio R. Morelle
9543d0a183
ai/lua: Use normal #include instead of system #include
2012-02-25 05:39:53 +00:00
Ignacio R. Morelle
c5b39e4feb
gui2/tmp_change_control: Use normal #include instead of system #include
2012-02-25 05:39:36 +00:00
Ignacio R. Morelle
8722a00135
addon/validation: Fix regression where type=other is not recognized anymore
2012-02-25 05:21:38 +00:00
Ignacio R. Morelle
3613a09872
addon/mg: Move addons_list generation logic to addon/info
2012-02-25 04:25:30 +00:00
Oleg Tsarev
f90bf86bca
Now deleted game removed from index too
2012-02-25 04:14:53 +00:00
Oleg Tsarev
deaf1c0c3c
Fixed bug #19495 : stderr spam about missing savefiles
2012-02-25 04:14:41 +00:00
Fabian Müller
745cdd55a8
Classes for handling map label placement in the editor.
2012-02-25 03:00:08 +00:00
Ignacio R. Morelle
ed956d99b2
addon/mg: Remove orphaned typedef
2012-02-25 02:51:47 +00:00
Ignacio R. Morelle
7a1863124a
addon/mg: Remove exception type orphaned by 2012-02-25T02:06:18Z!shadowm@wesnoth.org
2012-02-25 02:51:32 +00:00
Ignacio R. Morelle
7b16b67e80
addon: Rename get_addon_info() and set_addon_info()...
...
...to better reflect their function
They have been renamed to get_addon_pbl_info() and set_addon_pbl_info(),
respectively. This also makes sense given the existing have_addon_pbl_info()
function.
2012-02-25 02:45:35 +00:00
Ignacio R. Morelle
21f5c99e55
addon/client: Prettify add-on ids for status display...
...
...when .title is missing in the .pbl
2012-02-25 02:41:59 +00:00
Ignacio R. Morelle
86eb697cd9
addon/client: Use the standard parser.cpp write() function...
...
...to generate _info.cfg
Through addon_info::write() we can get rid of the previous, annoying
variable interpolation hack and generalize more logic. Instead of using
the parser.cpp write() function on a file stream, we use a string stream
whose contents are inserted into the add-on archive before unpacking, as
usual.
2012-02-25 02:25:54 +00:00
Ignacio R. Morelle
a9b1e42e31
addon/info: Implement write() method, to serialize data back to WML
2012-02-25 02:25:39 +00:00
Ignacio R. Morelle
ce938dd0dc
addon/mg: Remove GUI1 callpath left-over in uninstall_local_addons()
2012-02-25 02:06:51 +00:00
Ignacio R. Morelle
ad75fae11a
addon/mg: Minor refactoring on manage_addons() and uninstall_local_addons()
...
* Both functions and their support elements are now in manager_ui.cpp
* We no longer use an exception to signal the need to refresh the WML
cache back to the game controller
* We no longer pass a pseudo-optional pointer to bool around
2012-02-25 02:06:18 +00:00
Steven Panek
adb3e1ad49
Updated the Ukrainian translation.
2012-02-24 22:44:27 +00:00
Nils Kneuper
c59c0f2a2b
updated Polish translation
2012-02-24 20:59:59 +00:00
Ignacio R. Morelle
b2795ea838
addon/info: Documentation fix
2012-02-24 18:19:05 +00:00
Ignacio R. Morelle
c191f3ee69
addon/info: Update dependencies list before descending further into the tree
...
This should make circular dependencies be handled as intended.
2012-02-24 18:13:59 +00:00
Ignacio R. Morelle
af5c345689
addon/mg: Better fix for builds with non-GNU C++ STL than 2012-02-24T17:43:46Z!anonymissimus@arcor.de
...
The point of the at() member call was to throw an exception if the
access was invalid. By using find() without checking, we could end up
dereferencing the end iterator of the addons_list. Thus, a helper
function has been added now to use an assertion to protect against that
hypothetical situation early enough.
2012-02-24 18:13:43 +00:00
Anonymissimus
91a7040013
VC9 projectfile update
2012-02-24 17:44:29 +00:00
Anonymissimus
bf608d34a2
CB projectfile update
2012-02-24 17:44:05 +00:00
Anonymissimus
11376e42f0
Replace some calls to map::at() with a map::find() workaround (fix for compilation in MSVC)
...
compilation error I got: "at() not a member of std::map". std::map::at()
seems to be gcc (Linux and MinGw) - only. At least it's not listed
here for instance: http://www.cplusplus.com/reference/stl/map/
2012-02-24 17:43:46 +00:00
Anonymissimus
17c3b5580e
change inclusion order
...
(workaround for compilation errors on windows (MSVC&MinGw))
These were seemingly the same errors/problem as worked around
by me in 2012-02-04T02:59:11Z!anonymissimus@arcor.de. Also, still pretty clueless about it.
2012-02-24 17:43:30 +00:00
Lari Nieminen
32b1f7132c
Updated changelog.
2012-02-24 12:31:47 +00:00
Lari Nieminen
d760974ef7
Replaced wolf-hit-1.ogg with a lower-pitched sound...
...
...and removed wolf-hit-4.ogg from the wolf hit sound list.
2012-02-24 11:52:55 +00:00
Sergey Popov
6ab1b1c5ab
scons: made boost autodetection look for lib files in prefix/lib64 too
...
This will make it unnecessary to pass boost_suffix=-mt on 64-bit Fedora
2012-02-24 09:41:00 +00:00
Steven Panek
be56f8085d
Updated the Latin translation.
2012-02-24 08:14:47 +00:00