50826 Commits

Author SHA1 Message Date
J. Tyne
3a041455ae Simplify the logic in attack_type::special_active(). 2012-09-20 18:52:10 +00:00
Fabian Müller
b31b317327 Handle cleared commands better.
Hide the "copy selected hex fields to clipboard" hotkey.
2012-09-20 18:15:11 +00:00
Alexander van Gessel
3d0d9e916c Add client support for [reject] 2012-09-20 18:29:42 +01:00
Alexander van Gessel
92542a2c07 Explicitly [reject] clients we don't know what to do with,
...while sending them the full list of versions we do accept
2012-09-20 18:29:39 +01:00
J. Tyne
b7da2683c0 Convert two private member functions to static non-member functions. 2012-09-20 15:10:32 +00:00
J. Tyne
52da55a0d8 Restore a comment that was (presumably accidentally) half-deleted...
...in 2006-04-06T14:43:57Z!dominic.bolin@exong.net.
2012-09-20 13:09:58 +00:00
J. Tyne
05bbedd625 Add some documentation and give some parameters more descriptive names. 2012-09-20 12:54:30 +00:00
J. Tyne
9f971e386d English convention: space after the colon. 2012-09-19 23:39:49 +00:00
J. Tyne
7d3bf08aae A slightly faster test for backstab and slow.
The previous version already did an imperfect test for UMC versions of these
specials (by ignoring some filters; mainline units have no filters anyway)
in order to increase performance. This version ignores all filters for a
larger performance boost.
2012-09-19 23:18:38 +00:00
J. Tyne
f4b606423e Better way for temporary_unit_mover to change movement.
(It now handles negative movement the same way unit::set_movement()
would.)
2012-09-19 22:33:31 +00:00
J. Tyne
b2a248ee51 Better handling of a corner case for temporary_unit_mover. 2012-09-19 21:06:12 +00:00
J. Tyne
6f49a703c6 Safer use of temporary_unit_mover. 2012-09-19 20:56:00 +00:00
J. Tyne
d823722d64 Suppress some processing when not debugging the whiteboard.
(This is for one of the debugging messages that might be superfluous now.)
2012-09-19 20:38:05 +00:00
J. Tyne
aa5c240c5f Give temporary_unit_mover the ability to set a unit's remaining moves...
...as well as its position.

Gabba: This change may make a pair of whiteboard debugging messages
superfluous, but I left them in just in case. If they are not needed,
someone may want to remove them.
2012-09-19 19:07:26 +00:00
Mark de Wever
fd2dd78fac Fix a compiler warning. 2012-09-19 17:58:50 +00:00
J. Tyne
c28353f67d Adapt unit_movement_resetter...
...so it no longer needs to access private fields of unit.
2012-09-19 16:27:35 +00:00
J. Tyne
cad139f572 Make the new parameter to unit::set_movement() optional,
...with the default to not have side-effects (not the behavior before
the parameter).
2012-09-19 13:43:05 +00:00
J. Tyne
651c127dab Do not always clear end_turn_ and hold_position_ in unit::set_movement().
This allows the function to be called without side-effects, so it can
be used as a simple setter (as the name suggests). Since the previous
behavior was to have side-effects (which is bad style for a default),
this commit introduces a non-optional parameter, ensuring that I've
looked at each place where this function is called.
2012-09-19 13:39:48 +00:00
Fabian Müller
2e62d8258e Refactored the hotkey handling.
Several hotkeys (keyboard, joystick and mouse buttons) can be assigned
to the same function.
2012-09-19 05:47:52 +00:00
J. Tyne
5347b21d5a Change some fields and methods of attack_type from public to private. 2012-09-19 04:51:58 +00:00
J. Tyne
331385f229 Remove the non-const version of attack_type::get_cfg().
It's not used and defeats the point of making cfg_ private.
2012-09-19 04:21:26 +00:00
J. Tyne
fb61593df5 Remove the declaration of a non-existent function. 2012-09-19 03:47:52 +00:00
J. Tyne
b022231ba9 Remove an unneeded friend declaration. 2012-09-19 02:56:17 +00:00
J. Tyne
8c8047de75 Add a getter to unit_type, allowing two friend declarations to be removed. 2012-09-19 02:24:36 +00:00
Nils Kneuper
8897526689 updated Slovak translation 2012-09-18 07:55:07 +00:00
Alexander van Gessel
c772a63de7 typo 2012-09-16 21:56:06 +01:00
Alexander van Gessel
514d223afa Reduce chat log pagesize to something you can scroll through 2012-09-16 21:56:02 +01:00
Alexander van Gessel
4fe6e5ed9c hide most of Kaleh's variations as a proof of concept 2012-09-16 21:27:44 +01:00
Alexander van Gessel
42a4eb44a5 Add help support for unit variations 2012-09-16 21:27:40 +01:00
Alexander van Gessel
007f776ffc Initialize unit variations when building for help 2012-09-16 21:27:35 +01:00
Alexander van Gessel
384d9865a6 Make [attacks] and [swarm] weapon specials stack (spotted by jamit) 2012-09-16 03:39:15 +01:00
Alexander van Gessel
9a36daf253 Make at most 1 temporary build-system clone...
...and get rid of it when you're done
2012-09-16 01:50:01 +01:00
Alexander van Gessel
e0bdb61808 Correct a comment about __del__() usage in globals in python 2012-09-16 01:49:59 +01:00
J. Tyne
ed05f43365 Use NULL instead of 0 for pointers. 2012-09-16 00:29:01 +00:00
J. Tyne
4dd21ce896 More function re-ordering. Better match with the header file now. 2012-09-16 00:22:22 +00:00
J. Tyne
f854a37d87 Consistent indentation. 2012-09-15 20:26:48 +00:00
J. Tyne
a74d812d1c Restrict the visibility of class attack to its own source file,
...and use public/private designations instead of naming a friend
function.
2012-09-15 20:26:02 +00:00
J. Tyne
25f1f9578e Reorder some functions.
No code changes. Just grouping class functions together so that class
implementations are not intermingled with each other and with non-class
functions.
2012-09-15 20:11:07 +00:00
J. Tyne
33446a704e Reduce some overhead.
(Use the new get_amla_unit() instead of get_advanced_unit() + extra
processing.)
2012-09-15 19:51:10 +00:00
J. Tyne
01292136b1 Add [terrain_type] max_light= and min_light=.
The defaults for these attributes fix bug #19250.
2012-09-15 00:23:04 +00:00
J. Tyne
00be5cfa20 Shorten some code. (No functional change, just easier to read.) 2012-09-14 22:59:00 +00:00
J. Tyne
e89da38edf When multiple units illuminate a hex,
...use the strongest illumination, not merely the last one found.
2012-09-14 22:13:59 +00:00
Elvish_Hunter
d0f2d88b57 Added [effect] apply_to=overlay 2012-09-14 20:33:08 +00:00
J. Tyne
a9315ef751 Put off calling an expensive time of day function until we know we need it. 2012-09-14 19:39:25 +00:00
J. Tyne
9eafe710a7 Remove an old pair of todos.
They suggest using quick_erase() when Wesnoth requires Boost 1.42, but
quick_erase() has already been deprecated as of Boost 1.48 (the
implementation of erase() was improved then).
2012-09-14 18:50:20 +00:00
Alexander van Gessel
ea822f4215 try to init the build system if it's missing 2012-09-14 18:24:51 +01:00
Alexander van Gessel
599082cd5a Don't rmdir directories that git rm has already taken care of 2012-09-14 18:24:49 +01:00
Alexander van Gessel
735390e070 Reduce verbosity of some debug output 2012-09-14 18:24:47 +01:00
Alexander van Gessel
359cf34ad0 Have init_build_sys and pot_update return a boolean 2012-09-14 18:24:46 +01:00
Alexander van Gessel
a84edcf4bc Some more error detection and correction for init_build_sys and pot_update 2012-09-14 18:24:44 +01:00