CasparKielwein
0692286bba
Remove dead code in hud directory.
...
Removed a lot of unused functions.
This is mostly a cleanup of a prior refactoring.
There where a lot of unimplemented functions remaining from renaming.
Removed several outcommented parts of code.
2018-12-26 20:40:20 +01:00
Artyrm
ff601db6fc
Switched to hud_config_as_player()
2018-10-14 18:15:18 +03:00
Artyrm
c1b055a685
Start using hud_config_restore().
2018-10-13 16:58:17 +03:00
asarium
20925f23cc
Use new cfile location feature for pilot files
...
This was previously hard-coded but it is now possible to solve this
using the new location API.
2018-07-17 17:20:55 +02:00
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
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
MageKing17
377751ab28
Avoid crashing if certain interface artwork is missing.
...
Changes a few windows (tech room, campaign room, medal case, and HUD config menu) to issue Warnings instead of Errors if certain pieces of interface art are missing. If their mask bitmap is missing, they automatically close themselves and display the old "Sorry, this feature is available only in the retail version" popup from the demo, allowing FSO to run the demo data without crashing when you click on the wrong button.
It also restores the special demo popup for the campaign room, which allows you to at least restart the demo campaign without deleting and recreating your pilot.
2017-01-24 13:18:42 -08:00
asarium
9a8bfc0217
More const correctness
2017-01-02 13:17:59 +01:00
Echelon9
c5493bb480
Scripted sort and uniq on (internal) project includes. Improves search time and as a by product removed a number of duplicative includes.
2015-06-22 20:24:30 +10:00
asarium
9aed627ce7
Replace longjmp with exceptions
...
Also added a EditorConfig file
2015-04-24 15:03:59 +02:00
niffiwan
9b37d1e0f4
Fix gcc warnings in hudconfig.cpp
...
declaration of ‘color’ shadows a global declaration [-Wshadow] (x2)
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11021 387891d4-d844-0410-90c0-e4c51a9137d3
2014-08-23 15:42:09 +10:00
niffiwan
57faea2bef
Fix mantis 3099 (from Yarn)
...
Make HCF parsing more flexible
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11018 387891d4-d844-0410-90c0-e4c51a9137d3
2014-08-23 15:42:09 +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
4bd10888ff
make localization more robust with additional checks on string length, more consting, and stronger typing and make XSTR const, since we don't want to modify the strings it translates and then CONST ALL THE THINGS
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9809 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:34 +10:00
zookeeper
c105b2ad15
Fixed an accidentally committed debug mprintf.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9583 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:26:07 +10:00
zookeeper
4eee845335
Restored the code which loads up the default HUD colors from hud_3.hcf. Was apparently accidentally removed in r9549.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9582 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:26:07 +10:00
Zacam
759b080814
pre-Antipodes Staging Merge: "Inferno" build options go away, INF_BUILD settings now "default" settings. Fixed and made consistent across all projects the Build Output names ("Debug" used for Debug builds at the very end of the file name before the extension and after other options such as SSE, where applicable) Other unused #defines or #ifdefs removed: DEMO build Related, STANDALONE_ONLY_BUILD (already covered by -standalone command line flag)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9549 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:46 +10:00
zookeeper
0f198fd677
Fixed the reset button in the HUD config screen not resetting to the default color scheme given to new pilots.
2012-11-16 21:17:18 +00:00
Swifty
e23a729ec5
HUD Config Options will properly set Text Messages and Messages to its defaults when reset.
2012-09-10 04:01:17 +00:00
The_E
b92c6402a4
More false alarms from PVS Studio
2011-09-04 12:13:31 +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
Zacam
09fad95070
Antipodes 7 Merge: HUD Overhaul, by Swifty.
2010-12-12 20:34:15 +00:00
The_E
314c4dfdc3
Removing game_load_palette(). It was useless and commented out anyway.
2010-09-02 07:47:09 +00:00
chief1983
14e0a7f257
Patch for Mantis #2071 : color inheritance and pan or static option for custom gauges
2010-02-11 16:32:45 +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
Goober5000
12bd14e579
we all got led down the garden path there! revert all radar range modifications
2008-01-19 00:27:43 +00:00
Goober5000
6ab0b17acc
added fixes for #1415 and #1483 , made sure every read_file_text had a corresponding setjmp, and sync'd the parse error messages between HEAD and stable
2007-09-02 02:10:29 +00:00
Goober5000
9894a9a5e0
generalize the way radar ranges are handled (inspired by Shade's fix)
2007-08-17 03:29:51 +00:00
taylor
6ab6cd71ce
fixes for stuff_string() bounds checking
2006-09-11 01:17:07 +00:00
taylor
f09c7e2d03
fix things that strict compiling balked at (from compiling with -ansi and -pedantic)
2006-09-08 06:14:44 +00:00
Goober5000
64e86452d0
pare down the pragmas some more
...
--Goober5000
2006-01-26 03:23:30 +00:00
Goober5000
4d5a477f71
übercommit of custom IFF stuff :)
2006-01-13 03:31:20 +00:00
taylor
d3481714d0
remove NO_NETWORK
2005-10-10 17:21:11 +00:00
Goober5000
2a307d099a
CVS header tweaks
...
--Goober5000
2005-07-22 10:18:41 +00:00
Goober5000
52f136f9ad
remove PreProcDefine #includes in FS2
...
--Goober5000
2005-07-13 03:15:53 +00:00
taylor
fbb630aa2d
ton of non-standard resolution fixes
2005-07-02 19:45:02 +00:00
taylor
3f6e13d20b
use vm_malloc(), vm_free(), vm_realloc(), vm_strdup() rather than system named macros
...
fixes various problems and is past time to make the switch
2005-05-12 17:49:18 +00:00
wmcoolmon
f46f237468
stuff_byte to stuff_ubyte; does the same thing, but with a better name.
2005-04-28 01:36:09 +00:00
taylor
2e4946e744
some demo related fixes (Jens Granseuer)
2005-04-11 05:42:02 +00:00
taylor
405ba066b9
change min/max to MIN/MAX to fix GCC problems
...
add lab stuff to Makefile
build unbreakage for everything that's not MSVC++ 6
lots of warning fixes
fix OpenGL rendering problem with ship insignias
no Warnings() in non-debug mode for Linux (like Windows)
some campaign savefile fixage to stop reverting everyones data
2005-03-10 08:00:18 +00:00
taylor
91e9fb4433
more NO_NETWORK/INF_BUILD goodness for Windows, takes care of a few warnings too
2005-03-02 21:24:48 +00:00
taylor
310a084b1f
few more compiler warning fixes (didn't mean to commit iostream.h change)
...
lower warning level to 3 to stop MSVC6 from complaining about C++ headers
2005-02-23 13:17:05 +00:00
taylor
b370e5b903
some bm_unload() -> bm_release() changes to save bmpman slots
2005-02-23 04:51:56 +00:00
taylor
0bf7ee01dc
merge with Linux/OSX tree - p0131-2
2005-01-31 23:27:55 +00:00
Kazan
864e1b5922
remove MCD complete
2004-07-26 20:47:56 +00:00
Kazan
428b3dcbc9
MCD - define _MCD_CHECK to use memory tracking
2004-07-12 16:33:09 +00:00
Kazan
c8889d06a1
make custom build work again
2004-04-06 01:11:41 +00:00
Goober5000
c7e9c9934d
got rid of all those nasty warnings from xlocale and so forth; also added comments
...
for #pragma warning disable to indicate the message being disabled
--Goober5000
2004-03-31 05:42:29 +00:00