18447 Commits

Author SHA1 Message Date
Ali El Gariani
e1634e353a Fix and remove redundant code...
...causing a sneaky super-ranged attack cheat using unit's end of turn key

spotted in the forum :
http://www.wesnoth.org/forum/viewtopic.php?t=17354 It is almost
existing in 1.2.6 too (you can see an attack cursor, but it select the
enemy instead of attacking)
2007-08-05 15:22:21 +00:00
Patrick Parker
99ad847508 move some enums into the public access level
(error C2248: 'ME' : cannot access private enumerator declared in
class 'mp::ui')
2007-08-05 03:41:43 +00:00
uso
af24c0b6eb make the user_info structure private 2007-08-05 03:25:55 +00:00
Patrick Parker
999d2923d0 add a missing operator>() and add some comments 2007-08-05 02:18:49 +00:00
Ali El Gariani
5898369e04 Use image::unscaled as the default for get_image(). Two reasons:
- it make more sense to scale only if we ask.

- only few "scaled" are used, but there is a lot more (40) of
  "unscaled" (this remove ~ 1KB of code)
2007-08-05 01:47:20 +00:00
Ali El Gariani
db48432957 Add image type where it was implicit...
,,,for preparing a change of the default value It also fix a small bug
: unit overlay was ToD colored (but unit stuff are not)
2007-08-05 01:30:07 +00:00
Ali El Gariani
3bf93e724a The adjust_color parameter was broken and so not really used.
It worked only for an image::type and was incorrectly cached. So, I
remove it. It change nothing for the current use: "scaled_to_hex" for
ToD coloring and "unmasked" if not.
2007-08-05 01:10:02 +00:00
uso
ae86746079 clean up some redundant code, change the sort order of the player list
(option "Sort Lobby List") to make it easier to see the players in the
selected game, especially if we have a lot of players; the sort order
is now: friends / players in the selected game / players in the lobby
/ players in a game / ignored players, this order works best for me,
although it may be a bit irritating if "Iconize Lobby List" is
switched off, please test it with your preferred settings
2007-08-05 01:09:54 +00:00
Patrick Parker
f504a28ec9 now unit filter supports find_in= to search a stored variable of locations 2007-08-05 00:55:14 +00:00
Patrick Parker
fdb93ceb2b coded the multi-location optimized version of find_in= for get_locations() 2007-08-04 23:42:31 +00:00
Patrick Parker
f0afaf3673 major code cleanup for WML variable retrieval, and a new feature
* fix a bug where containers could only be stored at the top-level

* fix a bug where both x and y had to be specified in location filters

* no longer needs to store __length reserved keyword inside array
  variables

* better handling/reporting of invalid WML variable type usage

* new key find_in= to allow searching a variable of previously stored 
  locations when using the standard location filter
2007-08-04 22:42:42 +00:00
Taurus
9dfd94ff5a Fixed a Misleeding Objective Bug 2007-08-04 21:38:55 +00:00
Taurus
de8588061a Minor Text Changes 2007-08-04 20:47:59 +00:00
Patrick Parker
bde6f5d1db delete an unused source file 2007-08-04 19:39:11 +00:00
Benoît Timbert
73948bebdb Allow Wesnoth to compile on case-sensitive OSs 2007-08-04 18:37:07 +00:00
Patrick Parker
006bd50050 fix a limitation found in location::matches_range() 2007-08-04 14:52:45 +00:00
Patrick Parker
58a2587ac4 use a constructor for sha1_hash instead of calling void hash() 2007-08-04 13:57:04 +00:00
Patrick Parker
342d0f9e76 get rid of some unused code/variables 2007-08-04 13:51:21 +00:00
Patrick Parker
3e2b1b6fa8 fix a truncated value and a platform specific include 2007-08-04 13:40:45 +00:00
David Philippi
f3977a2ffa swedish translation update fixing bug #9315 2007-08-04 13:18:04 +00:00
Patrick Parker
1db2e3bfcd new tag [filter_radius]
to allow greater control over radius expansion when using the standard
location filter
2007-08-04 12:43:20 +00:00
Patrick Parker
c56d774bc7 prevent the radius location filter from running multiple times...
...on the same location
2007-08-04 11:12:16 +00:00
Patrick Parker
e810766bd1 some internal preparation for [radius_filter] 2007-08-04 10:53:44 +00:00
Benoît Timbert
425d8bf953 Add the Soul Shooter -> Banebow name change in the changelog 2007-08-04 09:49:16 +00:00
Benoît Timbert
d2ef8d7c95 Unit id change : Halbardier -> Halberdier
Also mentionned the Soul Shooter -> Banebow in the changelog

wmllint will need to be updated to include those 2 changes for 1.3.6 -> 1.3.7
2007-08-04 09:47:27 +00:00
Benoît Timbert
32251b76a6 Remove 6-define limit in the cache filename by storing part in a SHA-1 hash.
Note that i might have messed up somewhere my implementation of the
SHA-1 algorithm since it doesn't seem to produce exactly the same
result as sha1sum :/ ... but well it seems good enough for the task.
2007-08-03 23:20:16 +00:00
uso
4fbd88f19b don't add the color tags to the user list, we never need them there 2007-08-03 21:51:40 +00:00
Gunter Labes
66c659294b new map 2007-08-03 18:56:47 +00:00
David Philippi
ad9f21004b swedish translation update 2007-08-03 17:01:02 +00:00
Ali El Gariani
adbcc54133 Bug #9610:
attack/move cursors and attack direction indicator are not used when observing
2007-08-03 16:20:45 +00:00
Ali El Gariani
0138d3716e better choice of attack direction on pack of units (bug #9649) 2007-08-03 15:53:43 +00:00
Ali El Gariani
8fd7325c86 Improve rendering of "black stripes": don't hide footsteps and fog
Improve rendering of grid : draw under fog, shroud and "black stripes"
2007-08-03 15:52:10 +00:00
Nils Kneuper
48e01e0d1e pot-update to get rid of two dummy attacks 2007-08-03 14:18:00 +00:00
Nils Kneuper
9549a8cc50 removed translation marker for dummy attacks, they are not needed... 2007-08-03 14:12:10 +00:00
Nils Kneuper
aa6bc2fb1a pot-update
(removed some strings that *should* not be needed, if former tranlated
strings now appear as untranslated, please tell me)
2007-08-03 14:05:50 +00:00
Nils Kneuper
5493cd1539 removed a part that *should* not be needed anymore
if any new untranslated strings appear, please tell me
2007-08-03 14:03:21 +00:00
Nils Kneuper
ba88d9884d updated German translation 2007-08-03 13:43:05 +00:00
Nils Kneuper
878577868e pot-update 2007-08-03 13:41:23 +00:00
Nils Kneuper
3929e168af really fixed the textdomain for liberty 2007-08-03 13:38:44 +00:00
Nils Kneuper
b49929972f fixed some textdomains
ESR: next time when moving units to core, please change the textdomain
to wesnoth-units
2007-08-03 13:32:34 +00:00
Bartek Waresiak
760fd11012 Some terrain changes...
...to make sure that lonely grunt can't be ZoC'ed or attacked by 3 units at once
2007-08-03 12:04:58 +00:00
Nils Kneuper
a86ae50c3b updated Finnish translation 2007-08-03 09:40:41 +00:00
Ali El Gariani
fa747b00a6 move a little "temporary hack" to a place where it will be very rarely used 2007-08-03 04:09:30 +00:00
Ali El Gariani
d78681df95 Draw the grid under the black stripes.
I think it make more sense.  Before, when the grid was on top, it
broke the continuity of the stripes
2007-08-03 04:04:14 +00:00
Ali El Gariani
27f86d2e06 A terrain_type variable of the main function to draw a tile...
...was only used for checking village flag, so move it into the
get_flag function.
2007-08-03 03:46:04 +00:00
Ali El Gariani
f8dbd5d14c don't even draw black stripes and "show enemy moves" numbers under shroud, since we can't see it 2007-08-03 03:27:06 +00:00
Ali El Gariani
d40f9b788f Also move footsteps later in the rendering sequence of a tile
(after grid, overlays and black stripes)

The main good point is that we can now better see the footsteps path
on zone not reachable in one turn.  (it was a bit hard before)
2007-08-03 03:14:40 +00:00
Ali El Gariani
02110aa6ad Starting to move fog/shroud later in the rendering sequence of a tile.
The current change render it on top of grid and unreachable mask ("the
black stripes"). Two good points

- We can now see the fog limit even with the the black stripes (was hard before)

- no grid on the shroud (what's the point?) and it is less ugly when
there is fog.  Previously the fog "blurred" terrains but not grid,
which was too much visible compared to unfogged tiles.

The final aim of this is to draw fog/shroud on top of units
2007-08-03 03:06:20 +00:00
Ali El Gariani
5fccb6b75e simplify and comment a little the big mouse_motion function 2007-08-03 02:54:41 +00:00
Ali El Gariani
5781e6d0f4 Improve "the attack from the last highlighted hex" system:
It now proposes direction using first the last highlighted hex, then
the last highlighted empty hex.  (previously was the last highlighted
empty hex, then the hex of the selected unit)

This make proposed directions more intuitive when hover groups of
units and it's a better fix for bug #9649 which was about annoying
long-term memory of bad last highlighted hex in this case
2007-08-03 02:38:24 +00:00