scummvm/sword2
Torbjörn Andersson 290c8114de Fixed end credits crash. (See bug #1327650). Actually, there were several
more or less serious bugs here:

* The fnResetGlobals() function returned IR_CONT. Since it potentially
  kills its own script resource, this can lead to illegal read accesses.
  Not it returns IR_STOP instead. This was probably a bug in the original
  interpreter as well, but it handled memory allocation quite differently
  so it was probably never an issue.

* Since fnResetGlobals() forcibly closes resources, I've changed the
  closeResource() function to silently ignore requests to close resources
  where the data pointer is NULL. While it could signify an error, it isn't
  necessarily so.

* Don't force the screen to fade up after the credits -- let the script do
  it instead. This prevents it from fading up the wrong image.

svn-id: r19127
2005-10-17 06:45:54 +00:00
..
driver Fixed off-by-one error when decoding the original sound files. I thought I 2005-10-17 06:31:10 +00:00
.cvsignore
anims.cpp Whitespace: "(type *)something" instead of "(type *) something", because 2005-05-12 13:12:15 +00:00
build_display.cpp Fixed end credits crash. (See bug #1327650). Actually, there were several 2005-10-17 06:45:54 +00:00
build_display.h Cleanup. Most of is simply moves the credits code out of Logic and into 2005-05-02 05:41:01 +00:00
console.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
console.h Moved some debugging stuff into the debugger class. 2005-02-22 07:37:50 +00:00
controls.cpp Don't remove the cursor character from the savegame name until the very 2005-10-16 13:53:15 +00:00
controls.h Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
debug.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
debug.h This is the second part of the BS2 restructuring. There are two new 2005-02-19 14:02:16 +00:00
defs.h Changed a few more hard-coded text-ids to constants. 2005-02-28 13:22:31 +00:00
events.cpp Removed unnecessary includes. 2005-04-09 13:08:00 +00:00
function.cpp Fixed end credits crash. (See bug #1327650). Actually, there were several 2005-10-17 06:45:54 +00:00
header.h
icons.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
icons.h
interpreter.cpp This should really be two or three different commits, but I'm too lazy for 2005-07-09 13:21:21 +00:00
interpreter.h Whitespace: "(type *)something" instead of "(type *) something", because 2005-05-12 13:12:15 +00:00
layers.cpp Whitespace: "(type *)something" instead of "(type *) something", because 2005-05-12 13:12:15 +00:00
layers.h This is the second part of the BS2 restructuring. There are two new 2005-02-19 14:02:16 +00:00
logic.cpp Whitespace: "(type *)something" instead of "(type *) something", because 2005-05-12 13:12:15 +00:00
logic.h Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
maketext.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
maketext.h Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
memory.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
memory.h Moved some debugging stuff into the debugger class. 2005-02-22 07:37:50 +00:00
module.mk
mouse.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
mouse.h Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
object.h
protocol.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
resman.cpp Fixed end credits crash. (See bug #1327650). Actually, there were several 2005-10-17 06:45:54 +00:00
resman.h Moved class File and the MD5 stuff to namespace Common 2005-05-10 22:56:25 +00:00
router.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
router.h Moved some more animation stuff out of the Logic class and into the 2005-05-12 06:30:16 +00:00
save_rest.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
save_rest.h
scroll.cpp This is the second part of the BS2 restructuring. There are two new 2005-02-19 14:02:16 +00:00
sound.cpp Whitespace: "(type *)something" instead of "(type *) something", because 2005-05-12 13:12:15 +00:00
sound.h Moved some more stuff to namespace Audio (enough for tonight) 2005-05-11 00:01:44 +00:00
speech.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00
startup.cpp Whitespace: "(type *)something" instead of "(type *) something", because 2005-05-12 13:12:15 +00:00
sword2.cpp Fixed end credits crash. (See bug #1327650). Actually, there were several 2005-10-17 06:45:54 +00:00
sword2.h This should really be two or three different commits, but I'm too lazy for 2005-07-09 13:21:21 +00:00
sync.cpp Cleanup. Most of is simply moves the credits code out of Logic and into 2005-05-02 05:41:01 +00:00
walker.cpp Remove trailing whitespaces. 2005-07-30 21:11:48 +00:00