Commit Graph

48322 Commits

Author SHA1 Message Date
Gabriel Morin
cbce7d2e74 Fix gold problems with the recent 2011-11-28T20:22:07Z!gabrielmorin@gmail.com
i.e. gold going in the negative in multiplayer, and recruit cost being
used instead of recall cost.
2011-11-29 06:23:35 +00:00
Gabriel Morin
2fd674a0ef Three visual tweaks for the whiteboard:
* Ghost the unit at starting position of planned moves

* On mouseover, display orb and xp bar on planned moves with accurate status

* Mouseover on last planned move of a unit displays accurate movement left
2011-11-29 06:23:23 +00:00
Gabriel Morin
1396c6c880 Fix formatting 2011-11-29 06:23:13 +00:00
Gabriel Morin
8d927a6fc8 Fix some ugly logging 2011-11-29 06:22:49 +00:00
Ignacio R. Morelle
c0b82e9538 Fix some bad grammar 2011-11-28 20:46:17 +00:00
Gabriel Morin
66b4fe1671 Somewhat better use of polymorphism in the wb visitors.
Visitor pattern and shared_ptr don't mesh well...
2011-11-28 20:22:17 +00:00
Gabriel Morin
e2ac075e6a Fix getting "not enough gold" message when executing planned recruits/recalls. 2011-11-28 20:22:07 +00:00
Steven Panek
a3168f89f9 Converted the remaining uses of Ggf. 2011-11-28 20:00:43 +00:00
Steven Panek
b5655f30ba Applied patch #3061. 2011-11-28 19:44:49 +00:00
Anonymissimus
0bfd31b17d Enable remaining tests.
Move util.cpp from wesnothlib to wesnoth and define a preprocessor
symbol to escape a duplicate reference.
2011-11-28 15:52:23 +00:00
Anonymissimus
39377b6479 solve some duplicate references if MSVC builds the tests
via #ifdefing
2011-11-28 15:52:20 +00:00
Anonymissimus
399e3ecb79 mute MSVC warnings by including global.hpp 2011-11-28 15:52:16 +00:00
Anonymissimus
a8ad747435 fix compilation in MSVC 2011-11-28 15:52:13 +00:00
Anonymissimus
2269b8fb82 avoid MSVC warnings about unreachable code 2011-11-28 15:52:10 +00:00
Anonymissimus
4c1d5677aa fix an MSVC warning about unused local variable 2011-11-28 15:52:07 +00:00
Anonymissimus
284ba08eb6 fix an MSVC warning about unused local variable 2011-11-28 15:51:57 +00:00
Nils Kneuper
56858dcd78 updated Czech, French and Slovak translation 2011-11-28 10:29:45 +00:00
Sergey Popov
6900afa3d0 Fix bug #18654
Comment debug output statements that causes memory corruption

found by Soliton.
2011-11-27 22:35:32 +00:00
Gabriel Morin
62415c11b1 whiteboard gold calculations just returns 0 if...
...teams aren't initialized yet.
2011-11-27 19:41:24 +00:00
Gabriel Morin
383caccb31 Removed unused comment and scope braces. 2011-11-27 19:41:19 +00:00
Gabriel Morin
0d73c50598 Protection against the scoped unit map structs...
...being used before whiteboard is initialized.

Should fix bug #19061
2011-11-27 19:41:12 +00:00
Gabriel Morin
77073d58ad More protection against whiteboard being called on...
...before teams are initialized correctly.
2011-11-27 19:41:05 +00:00
Alexander van Gessel
81eec4ea01 Fix the recruiting part of first tutorial scenario 2011-11-27 18:20:56 +01:00
Anonymissimus
03c72445ce disable MSVC warnings about unreferenced local functions...
...for gui/widgets/generator

(they're wrong according to mordante)
2011-11-27 15:18:35 +00:00
Anonymissimus
af166a790c mute an MSVC warning about truncating from an int 2011-11-27 15:18:32 +00:00
Anonymissimus
78bdf5f779 mute an MSVC warning about truncating from an int 2011-11-27 15:18:29 +00:00
Anonymissimus
02103a9181 mute an MSVC warning about truncating 2011-11-27 15:18:26 +00:00
Anonymissimus
983e7e7fcd mute an MSVC warning about truncating 2011-11-27 15:18:23 +00:00
Anonymissimus
9c1a79008d mute an MSVC warning about truncating from an int 2011-11-27 15:18:20 +00:00
Anonymissimus
cd2b166ab4 mute an MSVC warning about truncating from an int 2011-11-27 15:18:15 +00:00
Anonymissimus
43f2ad4884 mute an MSVC warning about unreachable code 2011-11-27 15:18:11 +00:00
Anonymissimus
aba8aa5d70 make tests usable in MSVC9
basically this method: 

http://blog.yastrebkov.com/2010/07/boost-test-setup-and-usage.html

since I haven't found a way to solve the 400+ linker errors when
adding as a new project.

Created 2 additional configurations for project wesnoth only to build
a test.exe out of this project (debug/release).

Debugger works with the boost tests.

No main function conflict, interestingly.

2 problematic tests/cpp files in the test directory are disabled yet.
2011-11-27 01:57:11 +00:00
Anonymissimus
99496cb4eb fix compilation in MSVC (unknown type game_display) 2011-11-27 01:56:56 +00:00
Anonymissimus
6c462e5886 disable a test which causes memory problems with Linux/scons and MSVC for me
(I dunno whether the code it refers to should better be fixed instead though)
2011-11-27 01:56:40 +00:00
Anonymissimus
98d6d891f3 fix tests broken by recent language stuff change 2011-11-27 01:56:24 +00:00
Anonymissimus
1d2b5003f3 fix compilation in VC9 (setlocale not in std::) 2011-11-27 01:56:09 +00:00
Anonymissimus
35a17fd952 visual studio 2010 projectfile update 2011-11-27 01:55:50 +00:00
Fabian Müller
3bf11bd745 Don't try to add translated unit names for advancements...
...that are not a valid unit type in unit::advances_to_translated().

Fix for bug #19043
2011-11-26 15:14:58 +00:00
Mark de Wever
62898bc27d Probably fixes a gcc warning AI0867 ran into. 2011-11-26 14:47:36 +00:00
Mark de Wever
539b1df6ce Fix an old-style cast. 2011-11-26 14:25:16 +00:00
Elvish_Hunter
78744fa36c SoF: implemented a better fix for the bug about Rugnur not being healed,
...and the units shown harmed in the recall list
2011-11-26 11:36:21 +00:00
Nils Kneuper
3ef85dee73 updated Indonesian translation 2011-11-26 11:10:51 +00:00
Anonymissimus
5ffabe7d14 made strin2rgb unthrowing (fix for bug #19052)
Updated all callers.

Some callers were calling it without catching the bad_lexical_cast it
could throw.
2011-11-25 22:54:24 +00:00
Anonymissimus
1eb7ec9851 I deserve a players changelog entry for my recent fixes.
And a star on the wesnoth walk of fame.
2011-11-25 22:54:07 +00:00
Gabriel Morin
625452d4bf Track whiteboard gold with less future map building. 2011-11-25 17:52:02 +00:00
Gabriel Morin
a1fea70ff5 Properly remove planned recalls from the recall list. Fixes bug #18774. 2011-11-25 17:51:56 +00:00
Gabriel Morin
4a7d54ddb1 Added has_actions method to allow early return from some whiteboard...
...methods when action queue is empty.

Also erased unused method.
2011-11-25 17:51:45 +00:00
Gabriel Morin
f64d62e2ea Adjustments to logging, asserts and comments. 2011-11-25 17:51:39 +00:00
Gabriel Morin
262ab3fe45 Cut down on some useless whiteboard future map builds. 2011-11-25 17:51:33 +00:00
Gabriel Morin
793aa716d1 Removed a rather unusual use of templates as a function parameter. 2011-11-25 17:51:26 +00:00