Commit Graph
271 Commits
Author SHA1 Message Date
zookeeper f6f4810bdc Removed the unused "Ghost Save" entry from Object_type_names, because it was causing an off-by-one when using the getBreedName() scripting function. Also added "Beam" to the list since it's a valid object type. 2011-12-21 08:30:34 +00:00
Echelon9 1612ae5ec5 Third part of fixing jump_nodes refactor, remove the union approach to linking Jump_nodes into Objects[]. First go at clearing the FRED errors. 2011-11-19 04:07:30 +00:00
Echelon9 3a245992a6 Documentation: Take out some old commented out code 2011-11-19 03:25:52 +00:00
Echelon9 8d728672e2 Cases of commented out Int3() indicate areas of old, redundant code. 2011-11-17 11:07:53 +00:00
Sushi 3effa423a9 Add $Armor Type support for missiles (table entry goes right after $Weapon Hitpoints) 2011-11-15 19:05:30 +00:00
Sushi 5dcc4762e1 Add workaround so that AI landings consistently work 2011-11-09 18:24:12 +00:00
Echelon9 d811ce6ff0 Documentation: General code cleanup of fireballs.cpp 2011-11-06 12:14:31 +00:00
IssMneur 4cb4e019c9 From m!m: patch to add support for customizable cockpit sounds. See: http://www.hard-light.net/forums/index.php?topic=78675.0 2011-10-22 22:11:31 +00:00
Echelon9 21de0c3b06 Clarify some aspects of the geometry map and distortion map batchers, as well as clarifying and making consistent the function calling conventions throughout the code. 2011-10-16 05:08:33 +00:00
Zacam 0417995d74 found by Valathil; in "int obj_in_view_cone( object * objp )", codes=g3_rotate_vector(&tmp,&pt); works out better than running the check, then discarding it since g3_code_vector calls to run g3_rotate_vector anyway. 2011-10-09 10:37:27 +00:00
Echelon9 24164e5fae Use SCP_* types to access STL types wherever possible. This allows more complete memory monitoring 2011-10-03 09:06:56 +00:00
Echelon9 624c777382 Documentation: Code cleanup in debris.cpp and ancilliary changes 2011-10-03 06:03:55 +00:00
The_E 0c60452e31 From m!m: Allows per-ship customization of ship sounds in ships.tbl. See Wiki for details. 2011-10-01 19:16:38 +00:00
The_E 5599c1cd54 Another case where one should use the case-insensitive check found and fixed. 2011-09-17 21:48:46 +00:00
Zacam 921122985e EOL inconsistencies corrected to match the rest of the files. 2011-09-14 19:25:15 +00:00
The_E fe59dcf091 strcmp != stricmp. Using stricmp is necessary to avoid breaking old missions. 2011-09-14 18:49:06 +00:00
The_E 69ea1d0727 Since this is the only place where r1 and r2 are variable, let's safeguard it. 2011-09-13 20:36:41 +00:00
Echelon9 888e5df866 Documentation: Big code cleanup of the collide**.cpp files 2011-09-12 12:34:49 +00:00
Zacam 1c820a6e8c 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
Goober5000 a609e4ebed having null iterators is apparently a no-no according to the C++ standard, so use a globally defined invalid iterator instead 2011-08-30 07:27:32 +00:00
Goober5000 6a65e3cb11 waypoints and waypoint paths now have dynamic limits 2011-08-30 03:35:42 +00:00
Echelon9 74bce78b0f PVS-Studio fix: V803 Decreased performance. In case 'tvs' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator.
For further discussion see, http://www.viva64.com/en/b/0093/

The scenarios where it will improve performance are under Debug builds. This improvement will however allow quicker use of other profiling tools that need to run on Debug builds.

Note. Code with size_t does not see the performance improvement comparison to iterators due to absence of array overrun check.
2011-08-28 08:31:25 +00:00
Echelon9 b4a344576f PVS-Studio fix: V802 On 32-bit platform, structure size can be reduced from 40 to 32 bytes by rearranging the fields according to their sizes in decreasing order. 2011-08-28 07:00:38 +00:00
Valathil 01160f1595 Let's try this again. Adding Framebuffer distortion thrusters and explosions. 2011-08-22 17:57:01 +00:00
Swifty a89d2f00b0 Soft sphere sprite rendering for particles, explosions, shockwaves, and thrusters. 2011-08-20 22:14:52 +00:00
Sushi e535197300 Add "Fog Near Multiplier" and "Fog Far Multiplier" options for missions. Allows the FREDder to tweak distances at which ships fade out in a nebula. 2011-08-20 15:06:18 +00:00
karajorma 2b2a074005 Halleck's bomb scoring code 2011-08-16 09:45:14 +00:00
The_E ce0355e27a From m!m: Adds access to collision data to the Lua API. 2011-08-04 11:05:25 +00:00
The_E 2584bcc9c8 This is the correct version now. 2011-07-30 22:39:49 +00:00
The_E 4ca3d83ba8 Reverting due to bugs 2011-07-30 22:32:09 +00:00
The_E 935bef97f4 This should have been committed as well 2011-07-30 21:43:30 +00:00
Goober5000 e5b8d61088 fix compile problems on MSVC6 2011-07-22 05:56:46 +00:00
The_E 8c81e1c220 Valathil's code cleanup patch. 2011-07-20 18:04:43 +00:00
IssMneur 4d4a2d40f8 From Valathil: Vary the intensity of lighting from warp fireballs (wormhole) based on the radius of the fireball. 2011-07-06 04:22:09 +00:00
The_E 1cff27d3cc Adds sexps to manipulate a ships' collision groups. If two objects are members of the same collision group, they will not collide with each other. 2011-06-28 08:36:54 +00:00
Wanderer de136e11d0 Fix for mantis 2406 for weapon vs. weapon collisions (not beam vs. weapon collisions however) 2011-04-20 08:17:24 +00:00
karajorma 14abce952e Remove a few annoying compilation warnings 2011-03-10 00:26:45 +00:00
Goober5000 68dee88e5e activate the OF_IMMOBILE flag, and clean up the obj_move_all loop slightly 2011-02-12 05:00:13 +00:00
Goober5000 b0a1941b63 commit the "immobile" flag, requested by Black Wolf, Diaspora, etc. This is just the infrastructure; the flag doesn't actually do anything yet. 2011-01-30 08:19:17 +00:00
Goober5000 215478baf1 add turret-protect-ship and turret-unprotect-ship 2011-01-21 08:55:26 +00:00
karajorma b06d66f797 LuaPineapple's fix for Mantis 2322.
Some comment clean up.
2011-01-19 08:24:26 +00:00
Echelon9 3741959d15 Fix: Mantis 2351 - Animated subsystems not counted as rotating allowing max to be exceeded 2010-12-27 08:00:31 +00:00
Echelon9 122b29b4eb Fix a comment typo 2010-12-27 06:47:03 +00:00
The_E 3042436f29 Swifty's go-swift stuff. Makes collision detection slightly less insane. 2010-12-22 14:42:21 +00:00
Zacam 6f29bdecd6 Antipodes 7 Merge: HUD Overhaul, by Swifty. 2010-12-12 20:34:15 +00:00
Goober5000 d856d71ffc revert Echelon9's commit 6754 which needs to be discussed first 2010-11-23 08:27:18 +00:00
Echelon9 b8767484a8 Fix a range of potential NULL dereferences 2010-11-20 12:22:03 +00:00
Echelon9 cea5c79872 Fix a few malloc/vm_malloc changes to properly track memory usage; fix a potential NULL dereference in parse/lua.cpp 2010-11-20 08:25:16 +00:00
Zacam 58ad43cff1 go_faster from Antipodes 6. Everybody, say "Thank you, taylor!" 2010-10-18 18:32:37 +00:00
Sushi b639593a56 Get rid of compiler warnings 2010-10-01 04:20:40 +00:00