27 Commits

Author SHA1 Message Date
pentarctagon
6371f0497c Add a separate toggle for if a replay should be public.
This makes it possible for a game to allow observers but have the replay not be public.
2019-11-11 18:13:51 -06:00
Steve Cotton
5dcd2d301d
Clean up some Cppcheck warnings by passing args as const refs (#4364) 2019-09-20 09:34:19 +02:00
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0678f40a209797d72dfaba3e5e88545
(cherry-picked from commit bc4d22dc72e79c3d6a3364ac896e473afd298246)
2018-10-07 03:23:36 +00:00
Matthias Krüger
a2168d2e24 codespell fixes to /src 2018-02-08 21:54:09 +11:00
Charles Dang
30172c8ebe Fixed SP option selections not being saved
Had forgotten to call prefrences::set_options. Instead of adding an extra call in the
SP Options Manager, I just moved the call to configure_engine::set_options, which is
called by both SP and MP codepaths.
2018-02-02 07:14:34 +11:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Charles Dang
2d3a79452b Configure Engine: removed orphaned function declaration from 2df3a09c0c 2017-10-05 17:00:31 +11:00
Charles Dang
2caf266413 Configure Engine: formatting cleanup 2017-10-05 16:58:07 +11:00
Charles Dang
2101353d36 Convert include guards to the shorter #pragma once
Turns out I mistook @celticminstrel's opinion that we should use include guards over pragma (737916e).
Since all major compilers support `#pragma once`, there's no reason not to use it.

For future mergability reasons, this excludes src/spirit_po and src/xBRZ. It also excludes src/boost-patched.
2017-05-09 19:41:37 +11:00
Charles Dang
e4f03fe459 Moved all preferences source files into a single folder 2017-05-04 11:04:19 +11:00
Celtic Minstrel
b4dc11ce36 Belated 2017 copyright update 2017-03-19 10:05:38 -04:00
gfgtdf
c3d05e3e48 fixup 'fix ub when starting a mp game '
c4feb997a9d7a1d10c1ff8
2016-12-14 02:20:31 +01:00
gfgtdf
c4feb997a9 fix ub when starting a mp game
the code in mp_create_game calls config_engine_->game_name_default where config_engine_ is nullptr which crashes if the compiler does debug checks on whether config_engine_ is not nullptr before game_name_default() is called.
2016-12-14 02:17:32 +01:00
Charles Dang
2df3a09c0c Configure Engine: remove entry point code
This is now handled by the MP Create Game dialog in post-show. Since that dialog creates a new instance of this class
each time a game is selected, this should be a small optimization. I might move the entry point setting as a whole
back to this class later.
2016-11-12 18:22:15 +11:00
Charles Dang
e33e9b1d32 MP Create: implemented a bunch more functionality 2016-08-18 03:34:27 +11:00
gfgtdf
f264b6cddc gui2 mp create improvements
This fixes the loadingscreen showing in that dialog.

This fixed the gui1 create screen showing after the gui2 create screen,
im particular the gui2 create screen can now be used to start mp
scenarios (but not all configure options work correctly yet)
2016-08-16 14:57:29 +02:00
Charles Dang
168cc67e04 ng::configure_engine: enable setting of side_cfg_ 2016-08-16 01:13:14 +11:00
Pubudu
129ce2982b Added new checkbox to multiplayer game configure dialog to allow only
registered users to join the game
2016-07-12 11:50:50 +05:30
Chris Beck
ba51524f6e update copyright to year 2016
using this shell script:

find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Elvish_Hunter
9b7b1751fd Removed trailing tabs and whitespaces from C++ source
I used this command line: find <source directory> -name \*.\[ch\]pp -print0 | xargs -0 sed -i 's/[[:blank:]]*$//'
2015-12-21 20:39:46 +01:00
gfgtdf
b8f26c4542 disable most mp_configure settings when force_lock_settings=yes
When using force_lock_settings=yes that game now not only forces
use_map_settings to on, instead if doest show these options and doesn't
thouch those attributes in the scenario.
This implements http://gna.org/bugs/?23037
and might also fix some bugs related to spmp patch ( specially
https://gna.org/bugs/?23509) since force_lock_settings default to yes
for campaigns.
2015-06-12 21:58:48 +02:00
Chris Beck
bf5fd171a8 refactor random_faction_mode to be an enum rather than an int 2015-03-13 13:13:20 -04:00
Chris Beck
d7cb138796 add "random faction mode" mp game setting, mp configure option
This just adds the gui and preference. It doesn't implement the
feature.

Current modes are "normal" i.e. "independent", "no mirror", and
"no ally mirror".
2015-03-11 20:26:59 -04:00
gfgtdf
6172dd3e56 remove unneeded member variable. 2015-02-02 23:15:19 +01:00
gfgtdf
e2a52ee0cb add OOS debug option in mp configure 2015-01-08 17:09:08 +01:00
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
gfgtdf
b0e6b23a91 move code to game_initialization folder 2014-11-01 03:03:11 +01:00