67868 Commits

Author SHA1 Message Date
sigurdfdragon
9423e47bab Fixup [unstore_unit] Lua port
Restores check_passability default of yes.
Fixes 50a9a25ae7a84da43a0bcc80287a3a9c119adc22
2017-03-14 23:51:06 -04:00
Charles Dang
6c994a5a73 Properly validate and set index when calling set_zoom with value
This fixes an issue where the zoom index wasn't properly reset when set_default_zoom was set. It also ensures
this function will only work with the set zoom levels.
2017-03-14 12:53:16 +11:00
Charles Dang
0becb66a8c Don't call select_hex when deselecting a hex (fixes bug #24712) 2017-03-14 12:36:35 +11:00
Charles Dang
15f8ac3c80 Fixed error in [modify_side] shroud_data= 2017-03-14 11:52:20 +11:00
Charles Dang
42e2486d8a Forgot to commit image changes with 441b0f76 2017-03-14 11:11:22 +11:00
Charles Dang
4e92eb1b55 Second small tweak to standard "gold" color (fixup faaa412d) 2017-03-14 11:10:42 +11:00
Charles Dang
60fc61a9a0 Cleaned up a few SDL includes 2017-03-14 10:56:35 +11:00
Charles Dang
8cce597edd Change default scaling option from Linear to xBRZ + NN
This is the recommended option, accoring to the Advanced Graphics Options dialog.
2017-03-14 10:44:28 +11:00
Charles Dang
fac813d24f Bunch of code cleanup relating to scaling options 2017-03-14 10:43:43 +11:00
gfgtdf
06a5443851 atempt to fix integer overflow in ai attack rating code
https://gna.org/bugs/index.php?25542
2017-03-13 22:55:09 +01:00
Jyrki Vesterinen
cd79780b68 CMake: demote failure to compile IEEE 754 test from error to warning
Apparently due to a CMake bug, some (but not all) CMake versions attempt to
compile the test with default flags, which means C++98 mode with GCC < 6.
As a result, compiling the test fails, and the whole game fails to build.

@gfgtdf pointed out to me that CMake reports the compile and run status
separately, and therefore it's possible to detect the situation where the
test fails to compile. Thus, I decided to allow building in that situation.
2017-03-13 21:37:44 +02:00
gfgtdf
bf3c70b9a6 fix crash when closing wesnoth during loadingscreen
http://gna.org/bugs/?25290
2017-03-13 18:55:39 +01:00
gfgtdf
6297ede88f remove unused parameter 2017-03-13 18:55:39 +01:00
Charles Dang
500e087d53 GUI2: deployed fancy toggle panels in a few places
[ci_skip]
2017-03-13 23:11:23 +11:00
Charles Dang
e43c65a689 Addon Manager: give addon list keyboard focus when opening manager 2017-03-13 23:07:52 +11:00
ln-zookeeper
2c9d0104c9 THoT: Fixed inconsistent weapon special order on Witness line's bolas 2017-03-13 13:12:12 +02:00
ln-zookeeper
0219433aee New sprite and animations for Royal Warrior by doofus-01 2017-03-13 13:09:20 +02:00
ln-zookeeper
04221b5fbd THoT: New Dwarvish Witness line sprites and animations by Vyncyn 2017-03-13 12:24:29 +02:00
Celtic Minstrel
5437c89bc8 fixup! Address missing component error in [modify_ai] (GNA25558) 2017-03-12 20:32:52 -04:00
Celtic Minstrel
72f9a4f270 Fix [heal_unit] not defaulting to amount=full (GNA25586) 2017-03-12 15:18:57 -04:00
Celtic Minstrel
070e4b6f8c Address missing component error in [modify_ai] (GNA25558) 2017-03-12 15:15:37 -04:00
Celtic Minstrel
d84a52dc45 Fix incorrect API table name in [animate_unit] (GNA25550) 2017-03-12 14:49:52 -04:00
Charles Dang
441b0f7691 GUI2: made new toggle panel selection style a separate definition (needs deployment)
The new style isn't appropriate in every context. This temporarily makes the old style default again.
2017-03-13 05:27:49 +11:00
Charles Dang
faaa412dc5 Tweaked standard "gold" color to give it slightly more contrast 2017-03-13 01:50:33 +11:00
Charles Dang
81e38dedb9 Scroll Label: fix WML use_markup key not working with this widget 2017-03-13 01:32:27 +11:00
Charles Dang
2e1555c4bf Addon List: use color_t definitions for colorizing status strings instead of hardcoded hex values. 2017-03-13 01:00:20 +11:00
Charles Dang
7f11aeb60c Convert various standard color definitions from hex to decimal 2017-03-13 00:53:19 +11:00
Charles Dang
bd3079cce6 Addon Manager: some code cleanup/simplification 2017-03-12 22:25:18 +11:00
Charles Dang
b79f04cf71 Fixed 2-pixel offset in most addon button images 2017-03-12 19:43:58 +11:00
Charles Dang
d5a3878e8e Fixed slight button overlap in replay controls 2017-03-12 17:07:36 +11:00
Charles Dang
7ed68f2e42 GUI2: experimental new design for toggle panel selected/focused states 2017-03-12 12:17:31 +11:00
Charles Dang
84519e9324 Fixed unused variable 2017-03-12 11:13:54 +11:00
ln-zookeeper
1c93e10451 Fixed the fake map border not appearing as black on the minimap 2017-03-11 23:52:57 +02:00
ln-zookeeper
781276709d Moves drawing of map borders to WML and improves the fake map border
This makes both the standard map border as well as the fake map border terrain be drawn using the same WML rules, which allows them to connect seamlessly with each other.

A dummy IPF ~NO_TOD_SHIFT() is added and used as an easy way to prevent the ToD color-shifting of the border images. This can and probably should be implemented differently in the future, but for now it's a very simple and effective workaround.

This does remove themability of the map border, but that feature is currently unused (even in UMC) and it can be re-implemented differently if the feature is needed. There is also other cleanup still needed regarding themes; the off-map background still remains themable, and the WML for specifying the border tiles still remains in the theme .cfg files.

The call to display::draw_border() which was used to draw the hard-coded map borders is now commented out but not yet removed.
2017-03-11 20:27:08 +02:00
ln-zookeeper
d4fcbc73c2 Automatically set flags to mark hexes as being on the map border or not
This makes it much simpler for WML to draw the borders.
2017-03-11 19:49:05 +02:00
Jyrki Vesterinen
0d6f7de167 Add-on manager: add an update button to the main panel 2017-03-11 19:12:37 +02:00
loonycyborg
672ac59dae Propagate rename of autorevision to src/CMakeLists.txt 2017-03-11 12:58:30 +03:00
Celtic Minstrel
2417597028 Attempt to fix Travis build
Scons has a space here, and the scons builds work on Travis,
so I figure CMake should also work if a space is added.
2017-03-10 23:34:07 -05:00
Charles Dang
664392728f Fixup comment in 4d62f42 because apparently I cannot English 2017-03-11 14:54:59 +11:00
Charles Dang
4d62f42817 Reorder default color list to match the tag order in core/team-colors.cfg
This fixes the underlying cause of bug# 25462. The index disparity causes incorrect results if any index
from this list was used for coloring.
2017-03-11 14:47:45 +11:00
loonycyborg
05f9f00289 Update autorevision script with upstream changes
this fixes autorevision errors if running from under su
2017-03-11 04:20:12 +03:00
Charles Dang
41647cec83 MP Staging: fixed incorrect color sometimes being passed to FLG dialog (bug #25462) 2017-03-11 12:10:59 +11:00
gfgtdf
ac645c157e add missing #include 2017-03-11 01:36:20 +01:00
Celtic Minstrel
2069449805 Fix inverted condition in Lua shroud op API 2017-03-10 18:09:39 -05:00
Celtic Minstrel
df0a665571 Fix wrong function name in [modify_side] implementation 2017-03-10 16:15:40 -05:00
Celtic Minstrel
6fe8e65502 another fixup 6de1c9441f25
Missed a usage of the potentially-nil value
2017-03-10 16:13:29 -05:00
ln-zookeeper
23662cb07c Removed editor-specific border fade images which are no longer used 2017-03-10 16:34:31 +02:00
Severin Glöckner
0d5db80e5b Tutorial adjustments:
Do not show traits in the wiki for Li'sar and Konrad, since they can't get them.
Li'sars new sprite seems to use rather a sword than a saber.
Copied defense animation for Li'sar from HttT.
Changed lua due to deprecation warning.

[ci skip]
2017-03-11 00:00:53 +11:00
gfgtdf
33c2e6aa67 Merge pull request #936 from gfgtdf/no_on_redo
use the original action codepath when redoing
2017-03-10 12:34:49 +01:00
Charles Dang
81504c8da3 Addon Manager: mark all relevant strings as translatable
[ci_skip]
2017-03-10 20:43:57 +11:00