Goober5000
e8a7c8cf57
medal_stuff passes the duck test, so make it an official class
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10128 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:36 +10:00
niffiwan
da21b44d07
fix gcc warning: declaration of ‘ship_obj’ shadows a global declaration [-Wshadow]
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10125 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:36 +10:00
niffiwan
4581ed9aa2
Persona-specific promotion debriefings (from Yarn)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10124 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:36 +10:00
niffiwan
f01eefe832
According to the medal_stuff class, some of these should be MAX_FILENAME_LEN, not NAME_LENGTH
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10113 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:35 +10:00
Goober5000
5aa3bddf70
change object from a struct to a class, since it contains the objsnd_num field :-/
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9995 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-10 18:28:55 +10:00
niffiwan
797ffdf0f4
Fix mantis 2883
...
update hud_num_make_mono (& callers) to handle the font number
add partial support for specifying special char indexes for individual fonts
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9985 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-31 19:25:03 +10:00
Goober5000
a81491161e
allow setting of background and mask bitmaps for the medal case
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9935 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-16 19:46:02 +10:00
Goober5000
0f1971c5aa
change the ship struct to a class, and remove use of memcpy and memset for setting/copying the entire ship class
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9885 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-07 20:02:31 +10:00
niffiwan
62d06cfcd9
Coverity multiple CID: fix potential not null terminated strings
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9842 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-29 22:12:22 +10:00
Goober5000
fe934190ac
clarify that some structs should now be treated as classes change shockwave_create_info back to being a struct fix some missing shockwave_create_info initialization
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9817 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:35 +10:00
Goober5000
f0830b6d64
scoring_level_init is only supposed to initialize a subset of the stats
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9814 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:35 +10:00
Goober5000
7248acc004
use a copy method rather than memcpy to clone stats (Mantis #2922 )
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9813 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:35 +10:00
Goober5000
7f90f5c674
make MAX_MEDALS dynamic
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9799 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-20 19:27:03 +10:00
Goober5000
b3798527a0
allow medals.tbl to specify images for debriefing views of medals, not just medal case views
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9789 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-20 19:23:18 +10:00
Goober5000
6d6c82c652
make localization names consistent, and move medal localization into localize.cpp
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9787 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-13 20:18:33 +10:00
Goober5000
96587dd2ab
allow specification of medal, callsign, and label coordinates
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9773 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-13 20:18:31 +10:00
Goober5000
0debee3c51
pretty sure this needs to be 0, per line 325
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9772 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-13 20:18:31 +10:00
Zacam
593be42e66
*drum roll* Pilot Code! Originated by taylor. Additional direct work by: The E, niffiwan, CommanderDJ, Pyro3D, Echelon9 (PVS-Studio), Karajorma and Eli2. (If I missed you, don't kill me.)
...
MASSIVE thanks to Mjn.Mixael and Blue Planet for tireless constant testing.
(It's still not perfect, but it probably wouldn't be where it is at without them)
Spans a lot from initial commit to AP Branch in r6835.
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9561 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:26:06 +10:00
Echelon9
e21ad72877
Utilise the CLAMP() utility macro in a further range of appropriate locations
2012-05-02 15:15:48 +00:00
Echelon9
dc4371680a
Clear a whole set of LLVM warnings - some of these would have caused memory fubars, so should marginally improve stability
2012-01-15 08:08:15 +00:00
Zacam
f6ad6b14b6
Synchronization of differences between Antipodes and Trunk. Cause unknown, just commit drift issues. Regular auditing will catch these faster, but people need to pay more attention when syncing Trunk changes over to Antipodes.
2012-01-13 17:49:57 +00:00
The_E
0bbca2cd79
Removing two unused variables
2011-12-18 16:36:49 +00:00
karajorma
31bc16cd6e
That's a rather pointless test when we don't have AI smart missiles.
2011-11-19 09:04:06 +00:00
Echelon9
3c7dad3563
Fix for medal room crash reported by QuantumDelta
2011-10-08 07:31:06 +00:00
Echelon9
3d97037b87
Documentation: Code clean up of medals.cpp and medals.h
2011-10-06 12:51:15 +00:00
Echelon9
e3195a82d6
Code cleanup: We should be really careful with using these scoring struct elements, as the types were changed from ushort to int at some point.
2011-09-25 02:42:27 +00:00
Zacam
a63dbe572c
Part Two: Synchronization pass of Trunk and Antipodes Differences.
...
Removes all extraneous ifdefs (Demo, E3, Multi Beta, etc).
Leaves Debug and Inferno.
2011-09-09 10:23:53 +00:00
Echelon9
e3c100d5fa
Documentation: A few documentation fixes
2011-09-03 09:06:00 +00:00
The_E
0ce71ca239
PVS Studio fix: V541 It is dangerous to print the string 'base' into itself.
2011-08-30 17:24:50 +00:00
Echelon9
3453cc9c70
PVS-Studio fix: V576 Incorrect format. Consider checking the [third] actual argument of the 'sprintf' function. The SIGNED integer type argument is expected.
...
Fixes a number of this class of issue with sprintf formats.
2011-08-30 15:39:29 +00:00
karajorma
dc980ecc21
Halleck's bomb scoring code
2011-08-16 09:45:14 +00:00
Zacam
524099c68e
Some "\n"'s to help with logging during multi. "Scoring:" wasn't using any, so it would run on the next item right at the end.
2011-06-28 01:03:03 +00:00
karajorma
a2afa2b67a
Switch to using the Macros for Multiplayer modes whenever possible.
2010-04-27 13:42:59 +00:00
Echelon9
1530e3556b
Fix Diaspora Mantis 537: Successfully killing a ship hidden from sensors should count towards your kill count
2010-03-12 23:19:42 +00:00
Wanderer
2ee628829a
fixes to various things listed in the prefast log
2009-09-11 15:52:18 +00:00
taylor
1529b99932
ensure init_scoring_element() initializes properly (Mantis #1827 )
2009-08-25 01:09:32 +00:00
Wanderer
02718dd5eb
fix for low res medals screen (by flaming sword)
2009-08-17 11:41:59 +00:00
portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +00:00
portej05
6a8d45c93d
Replace most instances of std::vector with SCP_vector. Memory is now all run through vm_malloc and vm_free.
...
Watch it go up AND down in mission.
2009-07-11 07:07:57 +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
616b19772e
Changes to allow more data to be used from exited_ship. Make ship_exited dynamic too.
...
Get-Damage-Caused SEXP and a couple of functions for counting the number of variables of a certain type.
Commit the new team loadout code and FRED changes to support it.
2009-05-14 15:06:52 +00:00
Goober5000
6e4021888d
add apostrophes to contractions, lol
2009-04-10 07:49:12 +00:00
taylor
9bce69ef79
ingame join related crash fix (the correct value is put in after mission sync)
2008-10-23 04:44:25 +00:00
taylor
0253d298e9
only load tbls from tables/ (Mantis #1725 )
2008-10-13 06:34:48 +00:00
Goober5000
05769b3ffe
fixed "bastion" debug console command to work for all main halls
...
added "medals" debug console command for testing
2008-10-12 19:44:06 +00:00
karajorma
cb6dbe5214
Fix Mantis 1745 (TvT scoring for players kills scales with difficulty)
2008-08-12 20:29:36 +00:00
karajorma
a05b1ef11f
Allow the player to score from assists and kills in a variety of new ways.
2008-07-24 20:23:52 +00:00
karajorma
a10ea210b3
Fix a bug that meant players sometimes didn't get an assist is someone had already earned one.
...
Make it possible to decide what percentage of the damage a ship receives earns you a kill.
2008-06-23 16:27:14 +00:00
Goober5000
23863d81bc
a bugfix by razorjack
2007-09-30 19:01:18 +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