Commit Graph
45 Commits
Author SHA1 Message Date
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 d40078d9dc Documentation: Code cleanup of camera.cpp and camera.h, and removal of redundant function 2011-09-12 12:15:27 +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 98a9293520 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
Echelon9 584d6a7e65 PVS-Studio fix: Expression 'idx < 0' is always false. Unsigned type value is never < 0. 2011-08-11 14:15:05 +00:00
The_E 8c81e1c220 Valathil's code cleanup patch. 2011-07-20 18:04:43 +00:00
Echelon9 95d3e7952f Fix: Convert a further subset of strcpy() to the SAFE_STRINGS strcpy_s() version 2010-12-20 04:28:01 +00:00
Goober5000 9927dfc4ba a couple of small but important fixes to the subtitle code, including (finally) the complete fix for Mantis #2152 2010-03-20 06:37:26 +00:00
Goober5000 591f4004e4 handle variables in show-subtitle 2010-03-19 07:39:51 +00:00
Goober5000 4a835b7222 allow specification of fonts via show-subtitle 2010-03-19 06:31:15 +00:00
Goober5000 7643e804d7 this is a long-overdue rewrite of WMC's show-subtitle sexps 2010-03-15 01:55:40 +00:00
Wanderer ffb7dc4d06 fix for mantis 2125 2010-03-04 20:34:52 +00:00
portej05 22b13c269e post-frame-shaded subtitles! Pass an argument 13 which is either (true) or (false) in order to make use of this.
Fix for multimonitor focus loss issue associated with the mouse at the initialisation of the mainhall
2009-09-09 11:52:42 +00:00
portej05 6bc7f30d78 safe_strings - from Antipodes build #1 2009-07-27 16:06:24 +00:00
portej05 d8079622b6 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
Wanderer 9597b33967 add 'missing' casts 2009-03-06 15:08:16 +00:00
WMCoolmon 402fd56bb8 Change set-fov back to a global override 2008-08-30 19:48:20 +00:00
WMCoolmon 275d36445d New camera code core commit, delta bank code. 2008-08-30 10:42:27 +00:00
taylor 339e75eba6 fix subtitle centering for non-1024x768 resolutions (Mantis #1630) 2008-03-31 13:51:39 +00:00
taylor 6f702c9cdf fix various compiler warnings 2008-03-29 06:30:20 +00:00
taylor 11ca1ef4a8 move stable branch to the primary under trunk 2008-03-16 16:25:19 +00:00
taylor eb8c44c2a0 move HEAD to it's own dir under trunk 2008-03-16 16:21:11 +00:00
WMCoolmon 84b33dd636 Quick patch to optimize camera code, and fix it when being used by any camera which does not use the internal movement code. 2008-03-15 21:06:39 +00:00
WMCoolmon 7ac8ccf326 Camera code 2008-03-15 20:31:57 +00:00
Goober5000 4811257f31 revert the directory move 2008-02-09 21:33:46 +00:00
Goober5000 8909d048b3 remove extraneous fs2_open folder from all branches and tags 2008-02-09 19:21:05 +00:00
Backslash 538496804f Cutscene subtitle positioning fix for resolutions other than 1024x768. Code by MikeStar. 2007-06-24 23:32:16 +00:00
taylor 61bf47af51 Vodka, it's a killer ;) 2006-05-13 07:03:41 +00:00
wmcoolmon 6b2844c13e Bump this, too 2006-04-03 09:07:34 +00:00
wmcoolmon 601f884ecd show-subtitle's got its groove back 2006-04-03 09:05:37 +00:00
wmcoolmon 5bef6f400a camera code updates (Translation should be possible now) 2006-04-03 07:45:15 +00:00
taylor dcc0bbee6f fix text subtitles that I so kindly broke not too long ago 2006-03-22 08:34:17 +00:00
taylor 6e8aab4827 various camera fixes (did this ever work properly?)
- handle basic init properly for those platforms that do/don't zero-initialize STL vector
 - allow text images without witten text
 - don't try to process text if it's NULL or of 0 length
 - don't get freaky with image handling
 - add clone/assignment operator so that push_back() will not screw up bmpman stuff
2006-02-16 05:07:08 +00:00
Goober5000 5f61c6698c reordered #include files to quash Microsoft warnings
--Goober5000
2006-01-20 07:10:34 +00:00
Goober5000 058aa3b940 get rid of a whole bunch of Microsoft warnings
--Goober5000
2005-09-24 02:40:10 +00:00
wmcoolmon 791c7c39ea Oops. Breathalyzer standing by... 2005-09-20 04:51:01 +00:00
wmcoolmon 86539f252f Some work I did on the camera code 2005-09-20 04:48:52 +00:00
wmcoolmon 2f84efb076 Fixed bug where camera reset when rotation complete 2005-07-23 18:25:42 +00:00
taylor 586190fb8e s/vector/vec3d/g, better support for different compilers (Jens Granseuer) 2005-04-05 05:53:25 +00:00
wmcoolmon fbf776164b Big, massive, codebase commit. I have not removed the old ai files as the ones I uploaded aren't up-to-date (But should work with the rest of the codebase) 2005-03-25 06:57:38 +00:00
taylor 119a28190f 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
wmcoolmon 853b8e79f3 Camera code updates (subtitles) 2005-02-20 23:14:00 +00:00
taylor 9bd125e1de fix an issue with bm_set_components()
abs is for ints fabsf is for floats (camera.cpp)
make the in-cockpit stuff OGL friendly
2005-02-10 14:38:50 +00:00
wmcoolmon 5d1ca5e7c6 Updated camera code 2005-02-06 22:21:25 +00:00
wmcoolmon c09b89127b Camera code 2005-01-27 04:16:28 +00:00