Commit Graph
139 Commits
Author SHA1 Message Date
IssMneur 9b52db7a40 From CommanderDJ: add check_for_eoln() to parselo.cpp. 2011-12-09 05:48:35 +00:00
The_E 35db4c565b Revert 7791. Something went wrong there. 2011-09-24 18:31:20 +00:00
The_E ad80cd3c31 Remove more useless encryption stuff. NOTE FOR PROJECT FILE MAINTAINERS: parse/encrypt.(cpp|h) should no longer be part of the project. 2011-09-24 17:37:12 +00:00
IssMneur 139c4a28b9 Lets try this again without templates that VC6 doesn't like (this time for real).
Use const strings in split_str.
2011-09-12 05:14:58 +00:00
Goober5000 972e1b2483 revert 7705... it did, in fact, contain templates that VC6 doesn't like 2011-09-12 05:01:57 +00:00
IssMneur 261ac0bef0 Lets try this again without templates that VC6 doesn't like.
Use const strings in split_str.
2011-09-12 04:03:56 +00:00
The_E d02e2387e1 Marking a bunch of PVS Studio warnings as false alarms. While the warnings are technically correct, none of these are in places where performance matters. 2011-09-04 12:31:33 +00:00
Goober5000 c232db851f add dynamic vector stuffing 2011-08-28 03:31:46 +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
Goober5000 11348068d7 revert 7508, which MSVC6 doesn't like 2011-08-22 07:58:00 +00:00
IssMneur bb9891eb73 - make split_str use const strings were appropriate.
- make brief_color_text_init use const strings where appropriate.
2011-08-21 17:05:04 +00:00
Goober5000 d9c3c67bea add some sanity protections against overstuffing arrays 2011-08-19 04:39:12 +00:00
Goober5000 284c6f8c17 fix some things that Zacam noticed 2010-11-23 07:30:36 +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
Goober5000 6200faf1c0 add SCP_string variants of sprintf, sexp_replace_variable_names_with_values, replace_one, replace_all, and lcl_replace_stuff
change the death message to use an SCP_string
change the set-death-message sexp to accept actual messages
2010-11-14 02:07:45 +00:00
The_E ee145b4284 From FUBAR: Patch to redirect a warning popup to the log when in standalone mode. 2010-08-26 22:56:36 +00:00
Goober5000 8955d3ac02 commit the revision patch originally inspired by Zacam 2009-12-05 22:53:04 +00:00
Goober5000 6f875452a1 add useful parselo function 2009-11-18 08:59:35 +00:00
portej05 dae86c91a5 Fix more incorrect uses of memset causing crashes 2009-11-13 13:22:59 +00:00
portej05 898e56f5e0 Fix for WiH crashes - I reckon this might be the cause of a few peoples problems (using bitwise & instead of logical &&) 2009-09-06 07:41:14 +00:00
portej05 5d8962eb0f Bump buffers causing safe_strings asserts 2009-07-19 07:56:04 +00:00
portej05 ad9d99eed0 Some safe_strings in use!
Note that I couldn't figure out the buffer size for some of them, so they haven't been changed. The buffer size should be passed as a function argument in future.
2009-07-16 15:18:11 +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
portej05 6b27987568 Missed a few! (CVS Comment blocks) 2009-07-04 13:39:58 +00:00
karajorma 4c8ec21048 New bug uncovers old bug. Neither particularly serious but both were annoying Diaspora debug builds. 2009-07-02 17:32:32 +00:00
Echelon9 9b6b07291c Fix for required_string_4() and readability in ship.cpp 2009-06-20 09:59:04 +00:00
karajorma 35c4e2621a Fix Mantis 1925 (Loadout lists may contain ships and weapons which are not been flagged as player allowed). 2009-05-17 12:35:52 +00:00
karajorma 279a677455 Fix Mantis 1859 (FRED crashes if an unknown ship type is detected in the loadout). 2009-05-14 16:52:56 +00:00
karajorma 56a40cc893 A couple of new parsing functions for dealing with variables in fields that previously only accepted integers or strings. 2009-05-14 14:08:07 +00:00
karajorma e63dacc787 Fix the FictionViewer truncating anything with more than 70 lines. 2009-05-12 21:49:41 +00:00
karajorma cfc5088957 Fix Mantis 1753 (Using " or ; in briefings and messages causes them to either vanish or truncate the message)
Fix a bug that prevented lcl_replace_stuff() working properly when a message had two or more replacements of the same type.
2009-05-11 08:41:51 +00:00
karajorma 0bf8debff9 Made this change in my branch but it never made it over here. 2009-03-21 23:06:37 +00:00
karajorma f5aa916add Doh! x2 2009-03-09 11:50:38 +00:00
karajorma 41cb2dbedc Doh! 2009-03-09 11:46:44 +00:00
karajorma b316f8c5a9 Fix Mantis 1872 (Fiction Viewer crashes/locks up.)
Allow FRED to save fiction if the mission file already has some.
2009-03-07 22:53:07 +00:00
WMCoolmon f1f4084de1 Final scripting, camera code updates. 2008-08-30 11:05:48 +00:00
karajorma 6560970097 Blowfish's port of Turey's ship template code. 2008-05-26 15:54:29 +00:00
Backslash c88b7eaba6 A few more tweaks for ship name end_string_at_first_hash_symbol support.
Make FPS and status displays hide when hud is toggled with shift-O.
2008-04-16 03:21:37 +00:00
taylor 020217e366 line sizes are figured at EOL breaks, so be sure that we account for those when splitting too (Mantis #1152) 2008-03-31 00:02:54 +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
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
wmcoolmon 708aa238d1 - Asteroid, debris, and ship collision damage type support
- Scripting system variable-setting optimizations
- Standardize override style
- Reinstate "Self" variable for HUD
- Automatic drawString moving-to-next-line
- Visible subsystem name can be changed through scripting; will not be changed in the log
- Fix many for-loop signed/unsigned warnings related to size()
- Asteroid, debris scripting collision handling
- Many, many additional Lua functions and variables
- Fix the dreaded random-Lua-parse-crash bug
- Fix struct array malf-ups due to flag_def_list change
2007-11-23 23:49:42 +00:00
turey 9afb4c3803 Fix for Mantis bug: http://scp.indiegames.us/mantis/view.php?id=1482
Also, fixed an implicit cast that MSVC2005 choked on.
2007-08-31 20:37:20 +00:00
Goober5000 20047fbdb6 generalize the way radar ranges are handled (inspired by Shade's fix) 2007-08-17 03:29:51 +00:00
turey 5c779aac36 Ship Template fixes. It's fully working now, hopefully. 2007-07-11 20:11:33 +00:00
taylor e2ddc8739c more resilient checking of stars.tbl and it's modular versions 2007-05-28 20:05:06 +00:00
taylor 6fe9bbce08 add extra safety check to make sure that we are going to do a wildcard search for modular tables 2007-04-11 14:58:07 +00:00
wmcoolmon 7b42152fda Fix a parse bug 2007-02-05 08:26:06 +00:00