52419 Commits

Author SHA1 Message Date
mattsc
5fb4dd3816 battle_calcs relative_damage_map: enemy leader needs to have unity weight 2013-05-03 07:02:23 -07:00
mattsc
7e189c1d51 battle_calcs relative_damage_map: add own and enemy damage to output 2013-05-03 07:01:21 -07:00
mattsc
122d674b9b battle_calcs library: some tweaks to attack_rating() function 2013-05-03 06:55:19 -07:00
Emilien Rotival
9b67386f5d fixed the size of the buttons, which was previously 36 pixels instead of the expected 38 2013-05-03 15:53:34 +02:00
mattsc
6b119e4039 battle_calcs library: fix formatting and indenting 2013-05-03 06:51:14 -07:00
nurupo
f79eae27e1 Added timestamps in Chatlog
It was a little odd that timestamps checkbox in Preferences affected
only regular chat messages, but not the chatlog, so I decided to add
timestamps into the chatlog.

I hate to use `const_cast` to add a timestamp to a received message, so
if someone knows a better solution, don't hesitate to mention it.
2013-05-03 05:24:47 -04:00
mattsc
61d0f53c63 Goto Micro AI scenario: remove unneeded wmllint exception. 2013-05-02 20:54:04 -07:00
mattsc
d3c1309e6f Goto Micro AI scenario: some changes to messages to make wmllint happy
Removed double spaces after messages and took care of 'nonstandard
word-wrap styles'.
2013-05-02 20:47:38 -07:00
mattsc
b75f2a0f90 Goto MAI scenario: update lurker MAI SUF and SLF to new syntax 2013-05-02 20:24:00 -07:00
mattsc
e3b358cab4 Add Goto Micro AI code to MAI switchboard scenario 2013-05-02 20:20:44 -07:00
mattsc
d58fdfd410 Add Goto Micro AI scenario map 2013-05-02 20:17:17 -07:00
mattsc
a7ccb1c877 Add Goto Micro AI functionality 2013-05-02 20:16:33 -07:00
mattsc
83ea570285 Add Goto Micro AI scenario 2013-05-02 20:03:56 -07:00
mattsc
06e896970d Update ai_helper library
New functions print_ts() and print_ts_delta().
Update functions find_best_move() and get_attack_combos().
Use new 1.11.2 syntax and functionality.
2013-05-02 19:57:21 -07:00
Favyen Bastani
6263e97f81 Added optional reason to the ignore feature.
In multiplayer, this supports players to associate a reason with ignored users that is displayed with the ignored username. Resolves http://wiki.wesnoth.org/EasyCoding#Add_possibility_to_give_reason_for_.22ignore.22.
2013-05-02 14:17:16 -04:00
Boucman
b4478d6d0e Merge pull request #3 from vinipsmaker/master
Fixes bug #20765
2013-05-02 00:24:27 -07:00
Vinícius dos Santos Oliveira
d271883eb7 Fixes bug #20765: Stack overflow in animation because of weird WML files.
A call to unit::redraw_unit would check if the unit contains any animation. If
no animation is found, then it would call set_standing to put a new animation.

States are usually changed through unit::start_animation. unit::set_standing
uses this approach also. If unit::start_animation is unable to change the unit
to the animation passed as argument, it would try to animate the object calling
unit::set_standing (infinite recursion).

unit::start_animation had a check (maybe to prevent the infinite recursion), but
this check was buggy (if the intent was to prevent the infinite recursion).

The solution add a instruction to successfully set the unit to the state
STATE_STANDING and fixes the check that was using the wrong logical operator.
2013-05-01 23:36:36 -03:00
fendrin
e5b3cb884e Some new terrain type icons + optipng run on the old ones. 2013-05-02 01:40:47 +02:00
fendrin
cb501d7012 Terrain icon info. 2013-05-02 01:34:19 +02:00
mattsc
26b9163a09 Add Zazweda to about.cfg 2013-05-01 14:11:20 -07:00
mattsc
c63258da84 Micro AIs: add zone guardian by Zazweda 2013-05-01 14:09:14 -07:00
Mark de Wever
98084d86a9 Fixes the wml_dialogs with wide screen theme.
Fixes bug #20592, applies patch #3844.
2013-05-01 20:40:26 +02:00
mattsc
5033ef7ebf Micro AIs: use [filter_location] and variants thereof for SLFs
Rename Standard Location Filters in order to be consistent with other
WML.
2013-05-01 10:54:07 -07:00
mattsc
f7aa38bca4 Micro AIs: use [filter] and [filter_second] for SUFs
Rename Standard Unit Filters in order to be consistent with other WML.
2013-05-01 10:16:25 -07:00
fendrin
f1527dd8a0 Reenabled the palette group menu. 2013-05-01 19:08:32 +02:00
mattsc
9995853471 The Elves Besieged Micro AI test scenario: update deprecated aspect syntax 2013-05-01 09:44:35 -07:00
mattsc
2103ece522 Micro AI switchboard scenario: fix some of the context menu item IDs
... so that they are consecutively numbered
2013-05-01 09:39:58 -07:00
fendrin
530ac238ec Made the palette a widget. 2013-05-01 16:57:02 +02:00
mattsc
b1cef372d6 Healer Support Micro AI: add optional SUF for healers
If set, only units passing this filter and having the healing ability
are used as healers.
2013-05-01 07:30:45 -07:00
mattsc
0b5da53da8 [micro_ai] tag: move serialization of cfg table into add_CA() function
This has the advantage that we can still add information to the cfg at
this level (namely the CA name, which gets checked for uniqueness here).
2013-05-01 07:17:00 -07:00
mattsc
a929543f4c [micro_ai] tag: make sure that each CA gets a unique name
This is important if more than one Micro AI of the same type is set up
for a side.
2013-05-01 07:05:59 -07:00
fendrin
4a559b6b94 Enable the help system in the map editor. 2013-05-01 15:41:23 +02:00
fendrin
c59da51bac Fix the layout for 1024x768 and higher. 2013-05-01 14:59:40 +02:00
fendrin
f1a9a3e8a7 Fixes to the editor's action state controlling. 2013-05-01 14:59:39 +02:00
fendrin
26f0960321 Merge pull request #2 from thunders/master
Fix 'end turn' button's state issue.
2013-05-01 05:08:18 -07:00
Andrius Silinskas
91faffb79f Fixed 'end turn' button's state issue. 2013-05-01 12:55:56 +01:00
fendrin
b144e05b43 New menu2 borders from Lord Bob. 2013-05-01 12:29:15 +02:00
fendrin
507d2b2b6f Change replay buttons from [menu] to [action]. 2013-05-01 12:09:41 +02:00
fendrin
1c8c82e040 Code cleanups. 2013-05-01 00:03:09 +02:00
fendrin
2a48e5fc8c Insert a call for the tooltips in the event processing queue. 2013-04-30 23:30:04 +02:00
fendrin
e466728309 Listbox artwork from Lord Bob. 2013-04-30 18:06:39 +02:00
fendrin
e49cc1f458 Default image for the turbo button type.
This fixes the widescreen theme.
2013-04-30 18:06:38 +02:00
Alexander van Gessel
04b42cba37 Optipng run
Original size: 422 KiB on 63 files
 Optimized size: 307 KiB
   Total saving: 114 KiB = 27% decrease
2013-04-30 16:59:21 +02:00
anonymissimus
b2ab637cc4 chamgelog updates for some recent commits of mine 2013-04-30 16:35:33 +02:00
anonymissimus
3f2f24d45b allow filtering sides on controller=
Disabled for networked multiplayer since the value differs between clients.
2013-04-30 16:35:32 +02:00
mattsc
4aba43d15d Xcode project: add tristate_button.?pp files 2013-04-30 06:23:08 -07:00
mattsc
1951cc218e Healer Support Micro AI: bug fix for aggression= key
Key needs to converted to a number before checking its value.
2013-04-29 17:39:39 -07:00
fendrin
b97ed9b338 Changed the endturn button from [menu] to [action]. 2013-04-29 20:11:04 +02:00
fendrin
dd7a497db1 Automagic Button State System. 2013-04-29 17:51:37 +02:00
fendrin
67d66c5756 Drawing support for the [action] theme wml. 2013-04-29 16:33:51 +02:00