Commit Graph

9587 Commits

Author SHA1 Message Date
Rusty Russell
bfd1745aa4 Fix the rest of the enum (left over from last patch).
A const TERRAIN is preferable to an enum here, since the type will
then be correct.
2006-01-24 01:56:37 +00:00
Rusty Russell
e2feadfc86 Warning fixes:
not complete, but I stopped pulling the thread before the whole
project unravelled 8)

(1) team and player numbers should be unsigned.

(2) sizes of gui elements should usually be unsigned.

This probably introduced some bugs.
2006-01-24 01:17:58 +00:00
David White
42303e0a17 fixed intermittent crash at end of replay 2006-01-24 00:47:39 +00:00
Bartek Waresiak
bf6a7f7e77 Den of Onis update 2006-01-23 21:32:02 +00:00
Rusty Russell
55b25205e5 Actually change over default hotkeys,
...particularly to fix shift-; = command.  (Forgot to checkin this
file)
2006-01-23 21:28:19 +00:00
Bartek Waresiak
8427511d32 Forest of Fear update 2006-01-23 21:21:00 +00:00
David Philippi
54e474003d translation update 2006-01-23 21:02:34 +00:00
Dominic Bolin
04c2c25a7c Allow creation of unit from WML with random traits. 2006-01-23 16:28:18 +00:00
Benoît Timbert
ba818a025b wesnoth-icon.png needs to be somewhere in images/,
since it is used as a WM icon and loaded by get_image()
2006-01-23 13:40:06 +00:00
Hogne Håskjold
c02256254b First batch of new ruin tiles by pekka 2006-01-23 11:15:16 +00:00
Jérémy Rosen
07976c48ee add tab completion to MP lobby 2006-01-23 06:43:33 +00:00
Rusty Russell
8bb43c7196 Fix non-US keyboards:
https://gna.org/bugs/index.php?func=detailitem&item_id=4380

This is non-trivial.  We don't want to break people's customized
hotkeys, yet we need to change the fundamental way keyhanding works.
Above all, we do not have a keyboard map.

SDL gives the unicode value of the keys pressed, as well as the key
itself and the modifiers.  We need to use this unicode value sometimes
(eg. for ':', which is not shift-; on non-US keyboards) and the
keycode at other times (F1 has no unicode value, and shift-space is
the same as space).  We do this as follows:

(1) Single-letter keys get treated as the character,

(2) Multi-letter keys (function keys, delete, etc) and space get
treated as the actual key.

However, we want backwards compatibility, so *if* they specify a shift
modifier we fall back to old-style keycode.

Finally, if the control key is pressed we often need to map the
unicode value back to the "raw" value to figure out what the character
is.  We only do this if the character value is less than 64: it's
probably not a universal rule.
2006-01-23 03:17:13 +00:00
Scott Klempner
45a161b7b5 sceptre of fire bugfix 2006-01-23 02:37:38 +00:00
Gunter Labes
b68abe551c changelog commit for 2006-01-23T01:57:04Z!soliton@wesnoth.org 2006-01-23 01:59:47 +00:00
Gunter Labes
142b3f3027 several changes to the movetype of the Walking Corpse and Soulless 2006-01-23 01:57:04 +00:00
Gunter Labes
4d1a45b5b9 corrected the description 2006-01-23 01:06:24 +00:00
Jérémy Rosen
5f91485eb6 limit name length in MP games to 18 characters 2006-01-22 22:30:35 +00:00
Nicolas Weeger
3d5b2edcbc Tentative fix for bug #5125
(ai moving a unit to an occupied tile crashes) and #5126 (ai can cheat).
2006-01-22 22:24:54 +00:00
Nicolas Weeger
8fe088bf97 Fix bug 5124 : dst/src arrays are not correctly reset after moves. 2006-01-22 22:04:54 +00:00
Scott Klempner
0520201703 added terrain mask to Sceptre of Fire to help you move 2006-01-22 21:43:10 +00:00
Dominic Bolin
3906e2690b Fixed SotBE [store_unit] WML 2006-01-22 21:16:48 +00:00
Dominic Bolin
771e520cc2 Added 'mode' tag to [store_unit]; allows appending to variable 2006-01-22 21:16:14 +00:00
Scott Klempner
61ac2cbe7c renamed Sceptre.cfg 2006-01-22 19:28:42 +00:00
Scott Klempner
6a9335d8fc text cleanup for TRoW 2006-01-22 19:22:36 +00:00
Nils Kneuper
bb3a3d9210 pot-update 2006-01-22 17:42:56 +00:00
Nils Kneuper
ab6568dd50 add new srcfiles...
...to make sure the strings in there will be translated when needed
2006-01-22 17:23:44 +00:00
András Salamon
96b0158bac fix warning 2006-01-22 12:01:50 +00:00
Jon Daniel
36ad56b673 fix warnings 2006-01-22 10:12:35 +00:00
Jon Daniel
d22125024c fix warnings 2006-01-22 09:59:29 +00:00
Jon Daniel
3beddbb93d fix replayer not empty causing shroud clearance without redraw.
Which allowed shroud expanding with undo.
2006-01-22 09:32:05 +00:00
Scott Klempner
5242412adf httt text cleanups 2006-01-22 05:53:49 +00:00
Scott Klempner
1356c122bd changelog update 2006-01-22 04:55:42 +00:00
Scott Klempner
a316b0f056 added road and dialogue to Lost General, bugfix for PitD 2006-01-22 04:53:42 +00:00
Scott Klempner
adb7047e1d changelog update 2006-01-21 20:29:29 +00:00
Scott Klempner
b35b226de5 standardized bonus objectives in httt 2006-01-21 20:25:17 +00:00
Scott Klempner
a3776b905a standardized some bonus objectives,
...changed dragon description, removed gryphon riders until the caves in HttT
2006-01-21 20:23:32 +00:00
J.W. Bjerk
e301f94ac6 updated changelog, added death animations to...
...Drake Gladiator, Enforer, and Slasher CFGs
2006-01-21 15:17:00 +00:00
J.W. Bjerk
18d3d8ce7b drake slasher, enforcer, and gladiator death anims. 2006-01-21 15:07:13 +00:00
Benoît Timbert
94660b8947 Moved Rusty in the Dev section 2006-01-21 01:17:07 +00:00
Benoît Timbert
46b1e0ab79 [[Cosmetic tweak on UI]]
- Changed HP/XP bar transparency to 70%

- Made the Orbs solid
  Side effect : the bar borders are solid too. Do we need to change this ?
2006-01-21 00:58:30 +00:00
Rusty Russell
1624d28e0d Save playlist in snapshot:
fixes https://gna.org/bugs/index.php?func=detailitem&item_id=5108

Also commit changes on loading level, so new music starts immediately.
2006-01-20 23:20:37 +00:00
Benoît Timbert
d0c9df6c17 Changed the HP/XP bars opacity from 0.6 to 0.75 2006-01-20 22:57:51 +00:00
Jérémy Rosen
5fe696057c seperate mvt speed and anim speed when moving 2006-01-20 19:19:16 +00:00
Hogne Håskjold
95e027efbb Updated terrain help to be consistent with changes done to the terrain tiles. 2006-01-20 14:39:18 +00:00
Rusty Russell
ddff9378c2 More work on multiple music files
(Fixes: https://gna.org/bugs/index.php?func=detailitem&item_id=5100 )

- [music_list] now just [music] as it is in event.

- file tag is now name, as in event.

- music events supported

- 'play_once=yes' plays once immediately then resumes playlist

- 'append=yes' required not to overwrite previous playlist entries

- 'immediate=yes' to start playing this track (then rest of playlist)
  immediately.

Also, more comments, and play_music_file() changed to play_music_repeatedly().
2006-01-20 10:34:20 +00:00
Nils Kneuper
7d04fd2a43 fixed missing space at the end of the help-wesnoth part...
...in the german translation
2006-01-20 08:10:22 +00:00
Rusty Russell
5290c8563d Fix http://gna.org/bugs/index.php?func=detailitem&item_id=4996
When calculating paths, we need to differentiate between the team the
unit is on, and the team doing the calculation.  These are *different*
for Show Enemy Moves and highlighting enemy units' range: we *know*
they can't walk through our ambush.

In general, checking map.count(loc) != 0 is not the right thing to do,
you should use find_visible_unit().  A player can currently find an
invisible unit on your keep by trying to recall on that hex, for
example, but I consider that too minor to worry about, and difficult
to solve.
2006-01-20 07:42:06 +00:00
Dominic Bolin
7f0d15fa04 Fixed [store_unit].
It now  always clears the variable,  rather than clearing  it for each
matching unit.
2006-01-19 16:01:52 +00:00
Rusty Russell
140a72cfc6 Infrastructure for scenarios to specify more than one music file
(see https://gna.org/bugs/index.php?func=detailitem&item_id=4938).

Scenario files can specify:
[music-list]
	file="wesnoth-2.ogg"
	ms_before=5000
	ms_after=1500
[/music-list]

One or more times.  ms_before & ms_after specify the milliseconds of
silence before and after, and are optional (ie. 0 if not specified).
The old "music=" style is still supported if no [music-list] sections
are present.
2006-01-19 13:45:20 +00:00
Rusty Russell
5c4d5c19f1 Fix trivial but correct warnings caused by -W. 2006-01-19 12:01:44 +00:00