The_E
e978adbbdf
Adding a return and Warning in case of a null pointer here
2010-11-24 11:35:21 +00:00
Goober5000
04c5416de9
add error detection for arrays that exceed maximum
...
num door sounds = num door animations
(how did that ever work before?)
2010-11-24 07:18:05 +00:00
Goober5000
5214560f70
how was that accidentally deleted?
2010-11-24 06:39:22 +00:00
Goober5000
2eda13c3e8
remove #defines that were obsolete since after FS1
...
fix an nprintf bug
change the method of pausing anims so that more than one anim can play in the same spot
(this means that the first frame of an anim won't be drawn until the anim actually starts playing but I think that's okay; it is really only noticeable for the crane animation in the Bastion main hall when the "new player tips" box appears)
2010-11-24 06:33:53 +00:00
Goober5000
d069b8ede7
ugh; formatting ftw
2010-11-24 04:53:41 +00:00
Goober5000
b3db43f54c
slight cleanup
2010-11-24 04:35:10 +00:00
FUBAR-BDHR
31853b77de
Fix issue with beams not doing damage due to the traitor beam fix.
2010-11-24 02:22:46 +00:00
Goober5000
0c945c210d
revert Echelon9's commit 6754 which needs to be discussed first
2010-11-23 08:27:18 +00:00
The_E
f02e83320d
Fix two instances where an object instance number was used as an index into Weapon_info[]
2010-11-23 08:20:56 +00:00
Goober5000
2b01993d64
corrected Echelon9's correction of Zacam's ... correction?
...
Anyway, sexp variables are only ints or strings, not floats. Therefore we need to print them to the file correctly.
2010-11-23 08:11:16 +00:00
Goober5000
10d6e21c9d
fix some things that Zacam noticed
2010-11-23 07:30:36 +00:00
chief1983
e7e1a07a4b
Finish matching vm_mallocs and vm_frees
2010-11-22 17:21:12 +00:00
Echelon9
4ccc6ba9a0
MAGIC numbers aren't for hiding in code...
2010-11-22 13:01:41 +00:00
Echelon9
e4e5775b63
Fix: Local declaration of 'i' hides declaration of the same name in outer scope.
2010-11-22 12:51:59 +00:00
The_E
66596f519c
Fix for commit 6756: -1 is a perfectly valid value for current_secondary_bank at that point.
2010-11-22 06:14:11 +00:00
FUBAR-BDHR
e818f7840f
Fix for Mantis 2190 - Player beams do not cause traitor.
2010-11-21 06:34:27 +00:00
Echelon9
8bc8deffd6
Fix: Local declaration of 'num_lines' hides declaration of the same name in outer scope.
2010-11-20 18:45:34 +00:00
Echelon9
8ba4f6c3c6
Corrected sprintf format, as 'Changed from 'int' to 'float' by Zacam 10/2010'
2010-11-20 17:27:45 +00:00
Echelon9
184b004e19
Fix: Use of swp->current_secondary_bank when equal to -1 as an array index. Very broken.
2010-11-20 16:25:33 +00:00
Echelon9
f96d7fc1be
Fix: Invalid data: accessing 'Text_line_size', the readable size is '80' bytes, but '4194244' bytes might be read; Invalid data: accessing 'Text_lines', the readable size is '80' bytes, but '4194244' bytes might be read
2010-11-20 15:10:14 +00:00
Echelon9
5bf9697227
Fix a range of potential NULL dereferences
2010-11-20 12:22:03 +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
b7acaf9177
remove the mprintf per discussion with taylor
2010-11-14 05:42:47 +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
Goober5000
a1f6c70318
Bad IssMneur! No biscuit!
2010-11-13 22:49:22 +00:00
IssMneur
9ce801e175
Remove redundant weapon_name_lookup().
...
Make the parameter to weapon_info_lookup a const char* (like it should be).
2010-11-13 07:27:45 +00:00
FUBAR-BDHR
f7f6e0e94b
Fix for mantis 2174: ERANGE: String error in multiui.cpp
2010-11-12 23:46:24 +00:00
The_E
52529f597a
Reverting that again to help tr5ack this down further
2010-11-11 09:54:18 +00:00
The_E
142649e968
Adding proper FRED-side support for special message source "<none>"
2010-11-11 08:45:25 +00:00
The_E
09f9dca972
Replacing a few asserts with proper error handling (in this case, simply CLAMPing the offending values to valid ranges).
2010-11-11 08:41:34 +00:00
The_E
1b00dda9dd
Fix for Mantis 2333 (Random crashes caused by snd_get_duration())
2010-11-08 23:04:34 +00:00
The_E
60eda39ca7
Adding a few checks here to guard/catch Mantis 2333
2010-11-08 01:36:43 +00:00
The_E
727da9031c
Fix for Mantis 2329 (Malloc fail on invalid sound files)
2010-11-06 04:44:17 +00:00
The_E
371307eb1f
Woops. This fixes screwed up test for MOI validity
2010-11-05 00:34:29 +00:00
FUBAR-BDHR
367ff95e79
Remove sexp_turret_subsystem_targeting_disable() and sexp_turret_subsystem_targeting_enable() and changes them to use the new generic function.
2010-11-04 05:28:39 +00:00
FUBAR-BDHR
09e6972731
4 new sexps to control Wanderer's subsystem flags from r6581
...
Fix for Mantis 2330 subsystem targetable/untargetable in multi.
2010-11-04 05:17:52 +00:00
chief1983
7192a2d8fe
More compatibility fixes for Solaris
2010-11-02 21:20:09 +00:00
The_E
afcf923c43
Remove bogus debug warning from the :V: days
2010-11-01 15:25:27 +00:00
The_E
d5b15a0567
Adding check for invalid MOI values
2010-11-01 15:24:07 +00:00
chief1983
4ccadf51fe
This should fix a OS X 10.5 crash, possibly others.
2010-10-29 19:09:26 +00:00
The_E
c4fe142f3a
Woops. How did I screw this up?
2010-10-29 04:14:13 +00:00
The_E
7c58abb9eb
Fix for faulty check
2010-10-29 02:44:14 +00:00
The_E
09343bfa46
Adding a warning and proper error handling to the "/" operator in order to catch div-by-zero scenarios.
2010-10-29 02:22:51 +00:00
The_E
5f5cea2c6a
Patch for minor snafu, from FUBAR
2010-10-29 01:10:19 +00:00
The_E
7fada6171a
2010-10-26 23:42:14 +00:00
The_E
e11fe6515a
Changing this sanity check to pop up a warning in FRED, but print to log in FS.
2010-10-26 22:56:58 +00:00
The_E
339ba7cca3
Fixes issue with the wrong mainhall being loaded on startup. Note: If a value gets initialized to -1, don't change it to a ubyte and init it to 0, even if that fixes a conversion warning. In this case, casting explicitly is a valid course of action, and should be taken. Here endeth the lesson on refactoring.
2010-10-26 22:23:56 +00:00
karajorma
f5ff35c3bf
Looks like we forgot to update the save functions when we changed the special_explosion to use floats.
2010-10-25 13:53:31 +00:00
Zacam
c45f22ff98
...and then it helps to actually initialize it to something.
2010-10-25 03:59:15 +00:00
Zacam
252f2b4e6c
Should have paid more attention on that last one, need to define what 'err' is outside of where it is.
2010-10-25 03:54:48 +00:00