Commit graph

75233 commits

Author SHA1 Message Date
ForPeace-Wesnoth
24ae649ff7 remove bonus objective once it's completed 2019-08-27 03:17:28 -10:00
Wedge009
ff772b1be8 Add game_created sound key
See #4260 for details.

[ci skip]
2019-08-27 13:41:01 +10:00
Wedge009
2ed6803aef Remove trailing white-space.
[ci skip]
2019-08-27 13:41:01 +10:00
Wedge009
9dd6f70c98 Change game_created event sound to join.wav on @stevecotton's suggestion. 2019-08-27 13:41:01 +10:00
Wedge009
e4e260709a Address comments against #3246 in order to resolve #2016.
* Remove unused notify_mode.NOTIFY_COUNT.
* Remove obsolete comment against mp_ui_alerts::items.
* Remove unused is_lobby parameter in mp_ui_alerts::game_created().
* Synchronise game_created sound in game_config.cfg with game_config.cpp.

(cherry picked from commit abaa77f7c6)
2019-08-27 13:41:01 +10:00
ville
169cff9ec7 Adds a preference item for a sound being played and desktop notifications in the lobby when a new game is created.
Remove unnecessary blank lines and debugging comments

- Adds a preferences entry in the multiplayer/alerts menu so sounds and desktop notifications can be toggled.

Reformat a few points for consistency

Have desktop notification show name and scenario of new game

Have desktop notification show name and scenario of new game

Update desktop notifications to use VGETTEXT for translations

(cherry picked from commit af71dbf1b1)
(cherry picked from commit a2d9943286)
2019-08-27 13:41:01 +10:00
Wedge009
14f69f8ad4 'los dit' clearly cannot mean both 'take it' and 'leave it' at the same time. Also correct capitalisation.
See #4271 for discussion.

[ci skip]
2019-08-27 12:09:27 +10:00
Wedge009
b5b88a9dc6 Remove description prefixes from translated strings. Resolves #2965.
* Where a translation is provided, I remove the description prefix.
* Where a translated string exactly matches the en_US source, or is otherwise still clearly English and doesn't match Google Translate's suggestions, I make it blank to indicate a non-translated string.
* Interestingly, there were some prefixes left-over in en_GB, presumably from before I took over.

[ci skip]
2019-08-27 12:09:27 +10:00
gfgtdf
c4ffade49a fix #1492 replays not saved in campaigns
previously the clint woudl send a [update_game] to the
server before sending [store_next_scenario] whcih set
game::started_ to false and this disabled game::save_replay()

Now we instead set started_ to false after save_replay() is called

I also don't really see the point of calling update_side_data()
and describe_slots() before the new level data is available so i just
removed these calls. (the call to game::update_game())
2019-08-26 22:45:55 +02:00
pentarctagon
b14a4b1bb3
Rename db_group_table -> db_user_group_table since it's more accurate. 2019-08-26 12:41:39 -05:00
gfgtdf
66fb021a6f
Merge pull request #4088 from gfgtdf/fix_remove_overlay
wml changes for overlays= change

* move loyal overlays to the loyal trait
* other wml improvments.

Fix [remove_object] for effects that change ellipse
2019-08-25 22:33:16 +02:00
gfgtdf
6ba25a8c64 overlay= related wml cleanups 2019-08-25 22:29:49 +02:00
gfgtdf
8610cc0a15 use [modify_unit] over store+unstore 2019-08-25 22:29:49 +02:00
gfgtdf
ef06634485 use overlay effect over [unit] overlays= 2019-08-25 22:29:49 +02:00
gfgtdf
aa07ec7915 add new macors to replace loyal trait. 2019-08-25 20:35:28 +02:00
gfgtdf
f4ad4f11c7 use [remove_trait] to remove loyal 2019-08-25 20:35:28 +02:00
gfgtdf
5cb93694c6 move loyal overlays to the loyal trait
since the recent changes to overlays= in particular 1a7724e547,
e71033374c and b2cd1cf6c [unit]overlays= is no longer the
recommended way to add an overlay and the use of the
apply_to=overlay effect is reccomended instead, so adding it
to the [trait] is the most natural option here.

this in particular fixes #4058 . Also people simply forgetting the
IS_LOYAL macro was a not-so-uncommon cause of bugs.

In some cases people want to give the LOYAL trait without giving the
loyal overlays for those cases i added a optional OVERLAY parameter to
the {TRAIT_LOYAL} macro, also heroes should now use {TRAIT_LOYAL_HERO}
instead which uses the hero overlay. The IS_LOYAL and IS_HERO macros are
no longer needed in combination with those traits.
2019-08-25 20:36:35 +02:00
gfgtdf
26c2f941f2 use [remove_object] over [remove_unit_overlay] if possible
this just prevents the units wml from getting cuttered with many [objects]
(generated by the [unit_overlay] implementation) that cancel each other out.
(in the cases here it shouldn't really be a problem though, i still did it
because it feels clener this way)
2019-08-25 20:35:28 +02:00
gfgtdf
a86df6c984 utbs: use [object] for dehydration implementation
this in particular makes it compatible the umc code that uses [remove_object]
It also makes the implementation a bit easier since we don't have to compute
things manually anymore, also duration=scenario takes care of cleanup at
scenario end.
2019-08-25 20:35:28 +02:00
pentarctagon
3be0f751cc Remove non-functional methods from player.hpp.
Attempting to call them results in an error during linking, for example:
undefined reference to `wesnothd::player::set_game(wesnothd::game*)'
2019-08-25 11:18:46 -05:00
Nils Kneuper
0e6db05034 updated Portuguese (Brazil) translation 2019-08-25 12:34:43 +02:00
gfgtdf
f4e7f417e4 reset ellipse on unit advancing
same reason as for the overlays= change, in particular this fixes
remove_object of objects that set ellipses.
2019-08-24 22:21:25 +02:00
gfgtdf
ce5696f334 add duration= key to [unit_overlay] 2019-08-24 22:19:58 +02:00
gfgtdf
5442d922c4 add [unit_overlay] object_id= attribute
with this the object can be removed with [remove_object]
2019-08-24 22:19:58 +02:00
gfgtdf
2117ce8332 new tag [remove_trait] 2019-08-24 22:19:58 +02:00
gfgtdf
fbdd926e14 improve [modify_unit] [status] implementation 2019-08-24 22:19:58 +02:00
gfgtdf
398ba56f77 formatting 2019-08-24 22:19:58 +02:00
gfgtdf
5b73c34798 overlays=".." -> {IS_LOYAL} 2019-08-24 22:19:58 +02:00
gfgtdf
308075ce67 formatting 2019-08-24 22:19:58 +02:00
gfgtdf
671f1efc40 formatting 2019-08-24 22:19:58 +02:00
pentarctagon
7a0759a268 Print an error message when the mp_mod_group is not a valid int.
Fixes #4266
2019-08-24 19:52:55 +02:00
gfgtdf
8a33ad0bf1 fix #4256 wesnoth.require with relative paths
now wesnoth.require is able to detect when the same file is
required two times using different names (like a/../a/b.lua
a/b.lua) and will only execute it once.

for this a new function wesnoth.canonical_path was added
2019-08-24 18:52:14 +02:00
newfrenchy83
62a005f4cf fix for sample_user_handler removal. (#4273) 2019-08-24 14:26:32 +02:00
loonycyborg
c71d57adc2 Address issue #4268 2019-08-24 15:12:28 +03:00
pentarctagon
b4c65f1796
Fix AppVeyor for sample_user_handler removal. 2019-08-23 12:15:35 -05:00
pentarctagon
77f9c9d147
A few more wesnothd man page updates. 2019-08-23 12:07:04 -05:00
Pentarctagon
375e50a78c
Update wesnothd's man page for the sample_user_handler removal. 2019-08-23 00:04:54 -05:00
Gunter Labes
10d3e39455
Set uft8 also on reconnects 2019-08-22 16:40:59 +02:00
loonycyborg
43546e455f Redundancy fix 2019-08-22 14:34:27 +03:00
loonycyborg
661048d4a9 wesnothd: restore functionality to notify users in games about lobby joins
needed to let clients in games know when users in their friend list log
on
2019-08-22 14:11:11 +03:00
Martin Hrubý (hrubymar10)
80bb708eb7
Fix Xcode project after 77fc455b0b 2019-08-22 12:19:55 +02:00
Pentarctagon
282efeae86 Remove client-side nickserv command functionality. 2019-08-22 10:41:51 +02:00
Pentarctagon
72e203844e Fix unused variable warning. 2019-08-22 10:41:51 +02:00
Pentarctagon
b1e92206f5 Remove the tracking of the last user handler clean.
The information isn't used, and the method is never actually called.
2019-08-22 10:41:51 +02:00
Pentarctagon
25f1537003 Remove the user_handler's clean_up() method.
It doesn't do anything.
2019-08-22 10:41:51 +02:00
Pentarctagon
eef0c34b0e Removes unused/unimplemented nickserv functionality.
Commands removed:
* register
* set
* details
* drop
2019-08-22 10:41:51 +02:00
Pentarctagon
0870d1bc89 Remove unused email-related functions. 2019-08-22 10:41:51 +02:00
Pentarctagon
4a93de4b00 Remove uh_name_ variable.
This is unneeded, as the only user handler is the forum/db handler.
2019-08-22 10:41:51 +02:00
Pentarctagon
77fc455b0b Remove sample_user_handler.
While I understand the reason it's here, it's been over a decade, no other user handlers have been added, and there's no indication any others will be added. Therefore, it doesn't seem like there's much of a reason to keep this code around.
2019-08-22 10:41:51 +02:00
Martin Hrubý (hrubymar10)
2144642d6d
Enable hardeneed runtime for macOS package
- Fixes #4109
2019-08-22 04:07:47 +02:00