pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/wesnoth Use explicit conversion to bool.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7bf4e3bb042
branches:  trunk
changeset: 648899:a7bf4e3bb042
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Mar 22 20:05:28 2015 +0000

description:
Use explicit conversion to bool.

diffstat:

 games/wesnoth/distinfo                                    |   3 ++-
 games/wesnoth/patches/patch-src_game__config__manager.cpp |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 172b5eb6dd2e -r a7bf4e3bb042 games/wesnoth/distinfo
--- a/games/wesnoth/distinfo    Sun Mar 22 19:51:06 2015 +0000
+++ b/games/wesnoth/distinfo    Sun Mar 22 20:05:28 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.52 2015/03/10 05:16:28 mef Exp $
+$NetBSD: distinfo,v 1.53 2015/03/22 20:05:28 joerg Exp $
 
 SHA1 (wesnoth-1.12.1.tar.bz2) = 081f0d839ccbd011a672ba7e134431a32eb8791c
 RMD160 (wesnoth-1.12.1.tar.bz2) = 961689d065a5f5c0076673e8028305e3dcc8e5b2
@@ -11,3 +11,4 @@
 SHA1 (patch-data_tools_castle-clutter_mk_all-castles_sh) = 0c05566e6cf361199031d2104608e5e78e807a9e
 SHA1 (patch-data_tools_unit__tree_helpers_py) = 79de075b33eb7d6d30a8d69635de7f48c19a8c30
 SHA1 (patch-data_tools_wesnoth_campaignserver__client_py) = b7591e23b4c049ee22e080ea20160d82dd631722
+SHA1 (patch-src_game__config__manager.cpp) = 362f017cc8cbdfcaaea4f43fa11c5af0d8b58105
diff -r 172b5eb6dd2e -r a7bf4e3bb042 games/wesnoth/patches/patch-src_game__config__manager.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/wesnoth/patches/patch-src_game__config__manager.cpp Sun Mar 22 20:05:28 2015 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_game__config__manager.cpp,v 1.1 2015/03/22 20:05:29 joerg Exp $
+
+--- src/game_config_manager.cpp.orig   2015-03-21 22:11:07.000000000 +0000
++++ src/game_config_manager.cpp
+@@ -68,7 +68,7 @@ bool game_config_manager::init_game_conf
+       // Add preproc defines according to the command line arguments.
+       game_config::scoped_preproc_define multiplayer("MULTIPLAYER",
+               cmdline_opts_.multiplayer);
+-      game_config::scoped_preproc_define test("TEST", cmdline_opts_.test);
++      game_config::scoped_preproc_define test("TEST", bool(cmdline_opts_.test));
+       game_config::scoped_preproc_define editor("EDITOR", jump_to_editor_);
+       game_config::scoped_preproc_define title_screen("TITLE_SCREEN",
+               !cmdline_opts_.multiplayer && !cmdline_opts_.test && !jump_to_editor_);



Home | Main Index | Thread Index | Old Index