IssMneur
e496117892
From CommanderDJ: add check_for_eoln() to parselo.cpp.
2011-12-09 05:48:35 +00:00
The_E
531a7c71bb
Revert 7791. Something went wrong there.
2011-09-24 18:31:20 +00:00
The_E
a982eb153d
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
dedd73a3f5
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
3597538bde
revert 7705... it did, in fact, contain templates that VC6 doesn't like
2011-09-12 05:01:57 +00:00
IssMneur
10809783f9
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
834e383c26
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
7931831cbe
add dynamic vector stuffing
2011-08-28 03:31:46 +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
Goober5000
f492ce292c
revert 7508, which MSVC6 doesn't like
2011-08-22 07:58:00 +00:00
IssMneur
80d3b0ed84
- 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
ce48784a5f
add some sanity protections against overstuffing arrays
2011-08-19 04:39:12 +00:00
Goober5000
10d6e21c9d
fix some things that Zacam noticed
2010-11-23 07:30:36 +00:00
Echelon9
9f361b791d
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
8ba6a7035c
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
3397d3a21e
From FUBAR: Patch to redirect a warning popup to the log when in standalone mode.
2010-08-26 22:56:36 +00:00
Goober5000
434059b5a2
commit the revision patch originally inspired by Zacam
2009-12-05 22:53:04 +00:00
Goober5000
33203d244a
add useful parselo function
2009-11-18 08:59:35 +00:00
portej05
cbaf0e5cc3
Fix more incorrect uses of memset causing crashes
2009-11-13 13:22:59 +00:00
portej05
0de4a7d9ae
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
c5ee5f5e33
Bump buffers causing safe_strings asserts
2009-07-19 07:56:04 +00:00
portej05
3ac9167ac7
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
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
bdd1f5ff9f
Missed a few! (CVS Comment blocks)
2009-07-04 13:39:58 +00:00
karajorma
f24633cba2
New bug uncovers old bug. Neither particularly serious but both were annoying Diaspora debug builds.
2009-07-02 17:32:32 +00:00
Echelon9
98f27b88dd
Fix for required_string_4() and readability in ship.cpp
2009-06-20 09:59:04 +00:00
karajorma
5c1a6ef841
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
4bd18224fe
Fix Mantis 1859 (FRED crashes if an unknown ship type is detected in the loadout).
2009-05-14 16:52:56 +00:00
karajorma
4485f12c24
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
428e5d67c9
Fix the FictionViewer truncating anything with more than 70 lines.
2009-05-12 21:49:41 +00:00
karajorma
c35da651ea
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
aa49d10143
Made this change in my branch but it never made it over here.
2009-03-21 23:06:37 +00:00
karajorma
87774d9ce8
Doh! x2
2009-03-09 11:50:38 +00:00
karajorma
b4abe9f24d
Doh!
2009-03-09 11:46:44 +00:00
karajorma
3f1880d22c
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
ddf75fc7e0
Final scripting, camera code updates.
2008-08-30 11:05:48 +00:00
karajorma
2c55d4caeb
Blowfish's port of Turey's ship template code.
2008-05-26 15:54:29 +00:00
Backslash
759872d98b
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
04df95e8c9
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
WMCoolmon
7e7d77c8d7
*Drumroll* The official scripting system commit to the stable branch!
2008-03-15 08:56:43 +00:00
Kazan
1a0257fd3e
Enemy cargo containers should not prevent autopilot.
...
Fix build problem in parselo (strrchr returns const char* not char*, need to explicitly cast - raises error in MSVC2005)
Update MSVC2005 "code" project to reflect removal/addition of fs2netd related files
2007-10-20 23:28:49 +00:00
taylor
c5235c6428
FS2NetD v.2 (still a work in progress, but is ~98% complete)
2007-10-15 06:43:23 +00:00
Goober5000
9894a9a5e0
generalize the way radar ranges are handled (inspired by Shade's fix)
2007-08-17 03:29:51 +00:00
taylor
0c643edb56
more resilient checking of stars.tbl and it's modular versions
2007-05-28 20:05:06 +00:00
taylor
c83d9a9222
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
taylor
9982011398
add WMC's strextcmp() from HEAD
2007-02-11 09:05:02 +00:00
Goober5000
2e0f30f809
allow parsing of similar ship copy names properly (Mantis #1178 )
2006-12-26 18:14:42 +00:00
phreak
9bfeae5126
Don't copy parentheses to parse buffers if outside of quotation marks. Otherwise
...
the parsing syntax will be copied to said buffer and some warnings/errors would occur.
2006-11-13 23:23:26 +00:00
taylor
6cae667430
add the part of the fix which actually did something ;)
2006-10-27 16:31:09 +00:00
Goober5000
195089c7b9
fix error line reporting (Mantis #1120 )
2006-10-27 16:01:49 +00:00