asarium
eeed22b91a
Enable misc-unused-parameters
...
clang-tidy was used for fixing the warnings. It is not clear if this is
actually an improvement so this may still be disabled later.
2018-04-25 11:57:55 +02:00
asarium
e28ebc2a6c
Enable and fix misc-suspicious-string-compare check
2018-04-25 11:13:19 +02:00
asarium
8f06e338a4
Add typesafe handle types and use it in game sound system
...
This adds a new class which allows to create type safe resource handle
types. At the moment, the engine uses ints pretty much everywhere for
providing handles to resources created by the specific subsystems. Since
all ints are the same to the C/C++ typesystem it is perfectly legal to
pass a sound handle to the graphics API as a buffer handle which will
obviously cause issues.
This adds a new type called "ID" which is a wrapper class for a generic
handle but with added type safety. An instance of this class cannot be
passed to a function expecting another type of handle which provided
compile-time type safety for these APIs.
As an initial test I converted the game sound handles to this new type.
I already found a bug in the mainhall system thanks to this new type.
The mainhall used the game sound handles as sound instance handles which
probably meant that that specific code never really worked right. I
removed the code since there was no better alternative for fixing it.
2018-04-22 16:22:45 +02:00
asarium
4a9f1a2d56
Fix the rest of the string conversion warnings
2017-01-05 00:15:01 +01:00
Fabian Woltermann
0591b7ef49
ai profile flags
2016-08-19 22:44:39 +02:00
Fabian Woltermann
3160bdaa00
Changes ship exit flags to the new system
2016-08-14 16:48:11 +02:00
Fabian Woltermann
770fce8de5
Bitset flags -- take 2 ( #775 )
...
This introduces a new mechanism for handling bit flags. Instead of using an int (or two, or three) to write bits into, this uses the std::bitset in a wrapper class that accepts an enum class as input. This means that certain classes of errors we've had a few of in the engine, where a coder used the wrong set of flags or checked them against the wrong variable (SF_STEALTH vs SIF_STEALTH, for example) can now be detected at a compiler level rather than not at all.
2016-08-12 16:13:50 -07:00
Fabian Woltermann
e470d2959e
Fixes a mismatched flag type error in multiteamselect.
2016-08-05 19:08:31 +02:00
asarium
16be3b7cc5
Add support for TrueType fonts
...
This allows to use standard TrueType Fonts for text rendering in FSO. It uses the NanoVG library which provides the ability of drawing 2D shapes. This library is used for most 2D operations now and can also be used directly by using the PathRenderer class.
2016-08-02 10:57:28 +02:00
Yarn366
873694eae2
Added unified functions for loading and saving custom UI backgrounds
2015-09-19 04:47:11 -04:00
Yarn366
36cc228527
Added support for custom ship select backgrounds
2015-09-15 23:49:43 -04:00
MageKing17
dc80ae0c9a
Merge branch 'master' of ssh://github.com/scp-fs2open/fs2open.github.com into ship_info
...
Conflicts:
code/ship/ship.cpp
2015-08-06 00:25:42 -07:00
Echelon9
3a3e901249
Fix: network/multiteamselect.cpp:1720:7: warning: declaration of ‘wing’ shadows a global declaration [-Wshadow]
2015-07-05 16:40:04 +10:00
MageKing17
bc0c7cf4c5
Vectorization of Ship_info.
...
Converts Ship_info from a ship_info[] to an SCP_vector<ship_info>. ship_info now has proper constructors, assignment operators, and a destructor. Num_ship_classes removed; various references to Num_ship_classes and/or MAX_SHIP_CLASSES (which remains for various other structures which need it) changed to Ship_info.size() instead.
This doesn't make the ship class limit dynamic, but it is a preparatory step to get there.
2015-04-27 00:01:22 -07:00
Goober5000
435b078157
Yarn's patch for Mantis #3107 (Parts of the interface code assume a font size of 10)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11082 387891d4-d844-0410-90c0-e4c51a9137d3
2014-09-25 16:40:34 +10:00
Echelon9
c3494516bd
Fix Coverity #1093544 Negative array index read in multi_ts_handle_mouse()
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10850 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-05 10:38:07 +10:00
Echelon9
ae6365bc35
Fix Coverity #1093545 Negative array index read
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10835 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-26 16:54:17 +10:00
Echelon9
c2122f9767
Fix Coverity #1093544 Negative array index read
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10834 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-26 16:54:17 +10:00
The_E
6e91857745
From Yarn: Fixes interface graphics scaling issues. If, for some reason, you want to have the interface graphics stretched, use the -stretch_menu commandline flag.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10544 387891d4-d844-0410-90c0-e4c51a9137d3
2014-03-30 12:39:54 +10:00
Goober5000
f3c902c39b
add wing_bash_ship_name, which handles the hash symbol thing, accommodates Blue Planet's capship trick, and works in FRED and while we're at it, do a little bit of const'ing
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10198 387891d4-d844-0410-90c0-e4c51a9137d3
2013-12-08 19:52:57 +10:00
Goober5000
886018d28f
here a const, there a const, everywhere a const const
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9801 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-20 19:46:41 +10:00
Echelon9
e776f8e5dd
Fix issue where switch statement would fall through for TS_MOVE_PLAYER, which would then not get pushed to other hosts
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9731 387891d4-d844-0410-90c0-e4c51a9137d3
2013-07-26 08:14:30 +10:00
Valathil
c8eceec482
Followup to 9454. Only check in the one instance where the crash happened. Ticket 2757
2012-12-25 18:44:09 +00:00
Valathil
3f3b8c128b
Adding an assert to multi_ts_get_team_and_slot so we can get Auto variable data in the crash dump to track down ticket 2757.
2012-12-19 01:58:27 +00:00
karajorma
76f8d96721
Fix a bug where placing the host in team 2 of a TvT mission would cause the clients to crash out.
2012-03-01 09:58:39 +00:00
Echelon9
f95628f94d
Documentation: Missionweaponchoice.cpp and related changes. Removed a few redundant functions.
2012-01-22 06:47:55 +00:00
Echelon9
8e1c689f32
PVS-Studio fix: V581 The conditional expressions of the 'if' operators situated alongside each other are identical. Check lines: 2056, 2061 (multiteamselect.cpp)
2011-09-23 20:28:06 +00:00
Echelon9
2866b4fb3b
PVS-Studio fix: V581 The conditional expressions of the 'if' operators situated alongside each other are identical. Check lines: 2039, 2044 (multiteamselect.cpp)
2011-09-23 20:27:25 +00:00
Echelon9
e3c100d5fa
Documentation: A few documentation fixes
2011-09-03 09:06:00 +00:00
Echelon9
a248a37d58
PVS-Studio: Fix V805. Decreased performance. It is inefficient to identify an empty string by using 'strlen(str) > 0' construct
2011-08-24 13:37:01 +00:00
The_E
d60e3787d1
Fix for Mantis 2424: Crashes in multiplayer when <Wingname> 1 is not a player ship
2011-06-28 19:24:13 +00:00
The_E
13ade13402
More fixes for Mantis 2372. Should now allow longer descriptions.
2011-02-05 09:18:04 +00:00
The_E
4a414205a3
Fix for Mantis 2372 (+Description field in Ships.tbl is being ignored)
2011-01-23 21:20:04 +00:00
Zacam
6cc6bd9119
From Antipodes #5 : new TBM option '$Alt name:'
...
For ships and weapon tbms - renaming existing tbl entries in mods
2010-01-31 01:19:58 +00:00
portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
karajorma
88f71ef237
Fix a multiplayer bug where names like Alphabet were assumed to be in Alpha wing
2008-12-20 22:10:29 +00:00
Goober5000
6208959b49
whoever made this change forgot about operator precedence
2008-12-14 07:20:56 +00:00
chief1983
1f5444b850
Different fix for 1278 - It's a bit more flexible. Use ai_profiles to allow/disallow entering multi with no primaries or secondaries
2008-12-04 17:38:11 +00:00
phreak
871b316add
Fix Mantis #1278
2008-11-19 15:31:30 +00:00
taylor
fe03b667cd
remove bad checks for loadout info (we are screwed if the info is bad regardless, so making it Assert() is cleaner)
...
fix bug that screwed up TVT if more than 4 ships on team
2008-11-11 01:03:38 +00:00
karajorma
466d3a2811
Couple of small changes to make the Standalone work again.
2008-07-07 08:46:17 +00:00
karajorma
a67a2182ce
Ensure that the chatbox is closed when going to debriefing.
...
Some general clean up.
2008-03-14 20:27:41 +00:00
Goober5000
603b795065
nitpick
2006-08-14 22:02:43 +00:00
karajorma
44fa19a721
Fix a Multiplayer bug where anything that included the name of a player wing was automatically considered to be a part of that wing.
2006-08-14 19:58:42 +00:00
Goober5000
29fe27ac01
fix display of ship copy class names in ship loadout screen
...
--Goober5000
2006-08-02 22:47:40 +00:00
wmcoolmon
246cfcfa65
Codebase commit, most notably including objecttypes.tbl
2005-12-29 08:08:42 +00:00
taylor
e08b1d17ea
bunch of error checking and code cleanup for the team stuff in ship/weapon select
2005-11-16 05:46:27 +00:00
taylor
d3481714d0
remove NO_NETWORK
2005-10-10 17:21:11 +00:00
Goober5000
4cf60293d3
clarification
...
--Goober5000
2005-09-27 02:36:58 +00:00