Goober5000
d87babfd92
remove the SIF_BALLISTIC_PRIMARIES flag
...
See also my comments on #762 . The flag is almost entirely redundant, so this PR removes it in all instances where it's used in the ballistic primaries code. There are one or two places where removing it was not a no-op, so I adjusted the rest of the code accordingly (most notably in the parsing validation when it checks that primary weapon cargo has been assigned). I also added a few divide-by-zero checks and slightly tweaked the support ship rearm code. The use of the SIF_BALLISTIC_PRIMARIES flag in the ingame_join code was replaced with a dummy value to avoid bumping the multiplayer packet version number.
2016-08-21 17:38:42 -04: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
asarium
a685642554
And another batch of 64-bit fixes
2016-08-12 09:42:55 +02:00
asarium
1bcd5400d3
Move build system to CMake
2016-07-22 12:07:19 +02:00
MageKing17
6985b198ec
Merge branch 'master' of ssh://github.com/scp-fs2open/fs2open.github.com into ship_info
...
Conflicts:
code/ship/ship.cpp
2015-08-12 13:25:34 -07:00
Echelon9
4f4449958b
Fix: warning: format ‘%s’ expects a matching ‘char*’ argument [-Wformat=]
2015-08-05 20:14:48 +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
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
niffiwan
55bec33861
From Axem & niffiwan: stop briefing/credits/mainhall music with scripting
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10495 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
zookeeper
8cd19aa588
Merged model point shields from zookeeper branch.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10135 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:36 +10:00
Goober5000
13513588df
turn p_object into a class ensure that p_object dock instances are cleared between missions, not just when the game exits handle Player_start_pobject in a saner way the p_object Reset method is nice, but it turns out we don't need it
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10060 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-17 20:24:42 +10:00
Echelon9
40983c4f40
GCC warning: variable set but not used
2012-06-17 13:32:04 +00:00
Echelon9
04b12cf599
PVS-Studio fix: The conditional expressions of the 'if' operators situated alongside each other are identical. multi_ingame.cpp: 1073, 1086
2012-05-06 14:23:11 +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
portej05
07b1ea4a3a
Logic bugs - ((state != blah) || (state != blah2) ) is always true, so that || should be a &&, and !blah.state & flag != !(blah.state & flag)
2009-09-07 11:13:52 +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
taylor
b57a68c0eb
remove old warning messages, that stuff should be added on an as-needed basis when debugging only
2008-05-03 04:47:51 +00:00
wmcoolmon
246cfcfa65
Codebase commit, most notably including objecttypes.tbl
2005-12-29 08:08:42 +00:00
Goober5000
ff3cb87bb6
comment fixage
2005-10-30 20:20:44 +00:00
Goober5000
50752e3e42
multiple ship docking implemented for initially docked ships
...
--Goober5000
2005-10-29 22:09:31 +00:00
taylor
d3481714d0
remove NO_NETWORK
2005-10-10 17:21:11 +00:00
Goober5000
c17c11b651
remove PreProcDefine #includes in FS2
...
--Goober5000
2005-07-13 03:26:00 +00:00
taylor
92b8c2d6ed
various compiler warning fixes (some of these from dizzy)
2005-07-07 16:36:58 +00:00
taylor
fbb630aa2d
ton of non-standard resolution fixes
2005-07-02 19:45:02 +00:00
wmcoolmon
31296826e1
MAX_SHIP_TYPES > Num_ship_types
2005-04-25 00:28:17 +00:00
taylor
8a05cd48e7
some limits.h fixes to make GCC happier
...
revert timer asm change since it doesn't even get used with Linux and couldn't have been the slowdown problem
2005-04-11 05:50:36 +00:00
taylor
3f9ffbc393
better support for Inferno builds (in PreProcDefines.h now, no networking support)
...
make sure NO_NETWORK builds are as friendly on Windows as it is on Linux/OSX
revert a timeout in Client.h back to the original value before Linux merge
2005-03-02 21:18:20 +00:00
taylor
09167fa382
merge with Linux/OSX tree - p0204-2
2005-02-04 20:06:10 +00:00
Goober5000
0c48b587a1
allow different wing names than ABGDEZ
...
--Goober5000
2004-12-14 14:46:13 +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
670a6e21d7
fix a small multibug in tables validation (I had added this once before.. where did it go)
2004-07-12 14:38:13 +00:00
wmcoolmon
027f21c616
Only send ships on the player's team
2004-07-12 03:26:03 +00:00
Kazan
c2882fef09
removed a couple pointless useless messages from the debug console
2004-07-12 03:19:17 +00:00
Goober5000
7ef2ab2e39
Uber pass at reducing #includes
...
--Goober5000
2004-03-05 09:02:13 +00:00
Goober5000
c89af3a84a
got rid of unnecessary double semicolons
...
--Goober5000
2004-02-04 09:02:45 +00:00
Goober5000
401967dd9d
ubercommit - basically spelling and language fixes with some additional
...
warnings disabled
--Goober5000
2003-11-11 02:15:47 +00:00
Kazan
c2cfffcfba
##KAZAN## FS2 Open PXO --- W00t! Stats Storage, everything but table verification completed!
2003-09-24 19:35:59 +00:00
Goober5000
458634292a
implemented the custom hitpoints mod
...
--Goober5000
2003-04-29 01:03:24 +00:00
unknownplayer
3a7cc9cc63
The big DX/main line merge. This has been uploaded to the main CVS since I can't manage to get it to upload to the DX branch. Apologies to all who may be affected adversely, but I'll work to debug it as fast as I can.
2003-03-18 10:07:06 +00:00
Goober5000
b53761bbd4
Fixed some minor bugs, and added a primitive-sensors flag, where if a ship
...
has primitive sensors it can't target anything and objects don't appear
on radar if they're outside a certain range. This range can be modified
via the sexp primitive-sensors-set-range.
--Goober5000
2003-01-03 21:58:08 +00:00
Goober5000
1e8f49d1ef
if it ain't broke, don't fix it
...
--Goober5000
2002-12-31 18:59:43 +00:00
Goober5000
acefe1a8a9
simplified end-user implementation of ballistic primaries
...
--Goober5000
2002-12-31 08:20:31 +00:00
Goober5000
e2a757bbbe
Full-fledged ballistic primary support added! Try it and see! :)
2002-12-10 05:43:35 +00:00
penguin
0c503be8d1
The big include file move
2002-08-01 01:41:11 +00:00
penguin
8f92eebd34
Warpcore CVS sync
2002-06-03 04:10:40 +00:00
penguin
663b3471b9
Volition sources -- warpcore CVS import
2002-06-03 03:26:03 +00:00