34 Commits

Author SHA1 Message Date
Evgeny Grechnikov
b7b5fbbad2 LASTEXPRESS: support for looped sounds 2018-10-17 23:03:00 +03:00
Evgeny Grechnikov
f771fa40ad LASTEXPRESS: multiple fixes in NPC logic
Checked the logic against the original game
(to be precise, DOS English version from GOG, although I think
AI logic has no significant differences with other versions).
Fixed a *lot* of errors with varying visibility for the user.

Also, save+exit+load sometimes resulted in memory corruption like
((EntityParametersSSII*)(new EntityParametersIIII))->param8 = 0;
load operation did not restore the correct type of NPC logic context,
the default one was used (which also has the smallest sizeof).
Should be fixed now. Save+load is still unusable because it locks
everybody waiting for kActionEndSound (the sound state is not restored),
but, at least, it should not corrupt the memory. Hopefully.
2018-08-26 12:09:43 +02:00
Littleboy
771cae50e4 LASTEXPRESS: Check that the archive is loaded correctly in debug code. CID 1003848, 1003849 2014-06-16 18:46:25 -04:00
Johannes Schickel
30d64edac4 ALL: Make Debugger command function names conform to our guidelines. 2014-05-27 02:04:08 +02:00
Johannes Schickel
ae4ffe01f0 ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +02:00
Johannes Schickel
3d4f409572 LASTEXPRESS: Make GPL headers consistent in themselves. 2014-02-18 02:39:35 +01:00
Littleboy
9714cce46f LASTEXPRESS: Fix unchecked return value (CID1003854) 2013-09-05 22:51:34 -04:00
Littleboy
20745e0b3e LASTEXPRESS: Fix unchecked return value (CID1003850) 2013-09-05 22:51:33 -04:00
Littleboy
6ab8db638e LASTEXPRESS: Implement more savegame loading
- Rename existing function to load the last saved game
 - Remove loadgame debugger command
2012-08-27 23:30:23 -04:00
Littleboy
ab4c47c584 LASTEXPRESS: Update Debug::loadArchive() to reduce casts 2012-08-27 21:49:37 -04:00
Littleboy
17c051b58c LASTEXPRESS: Check for invalid cd number in debugger commands 2012-08-27 21:49:35 -04:00
Littleboy
47fa7abbe0 LASTEXPRESS: Fix playsnd debugger command 2012-08-27 21:49:34 -04:00
Littleboy
cd5e750a7f LASTEXPRESS: Fix analysis warnings 2012-08-27 21:49:33 -04:00
Littleboy
272c1d87e4 LASTEXPRESS: Fix typo preventing playing NIS animations from the debugger 2012-08-01 17:56:56 -04:00
Littleboy
6aeda2638b LASTEXPRESS: More include re-organization 2012-07-27 00:54:24 -04:00
Littleboy
732a2c80dd LASTEXPRESS: Remove duplicated include statements 2012-07-14 13:23:54 -04:00
Littleboy
90dc4f9a8c LASTEXPRESS: Move Sound class to the sound folder 2011-06-28 22:30:24 -04:00
Littleboy
6eace0ca75 LASTEXPRESS: Move sound queue related functions to a separate class
- Implement missing queue reset function
 - Cleanup SoundManager::playLoopingSound()
2011-06-28 22:13:40 -04:00
Littleboy
3c2a9b292f LASTEXPRESS: Move Fight class to its own folder 2011-06-22 19:31:30 -04:00
Max Horn
aec2ea9661 ENGINES: Remove some uses of g_engine 2011-06-03 18:21:58 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Julien Templier
521f228ced LASTEXPRESS: Use SAFE_DELETE for class variables
svn-id: r54201
2010-11-11 14:19:44 +00:00
Max Horn
4d3a07b494 COMMON: Rename and tweak MD5 functions
* names now comply to our naming conventions
* the function computeStreamMD5AsString which computes the MD5
  as a hex string now returns it as a Common::String
* add doxygen comments

svn-id: r54121
2010-11-07 17:16:59 +00:00
Max Horn
a984fb17c2 GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warnings
svn-id: r54007
2010-11-01 16:03:35 +00:00
Torbjörn Andersson
4089b9fe2c JANITORIAL: Remove unnecessary semicolons
svn-id: r53889
2010-10-27 19:48:54 +00:00
Julien Templier
cdfcaa4d48 LASTEXPRESS: Implement game loading (last save entry only)
svn-id: r53883
2010-10-27 19:20:20 +00:00
Julien Templier
dba75791d9 LASTEXPRESS: Add some missing casts and const qualifiers
svn-id: r53880
2010-10-27 19:19:22 +00:00
Matthew Hoops
4f37c92602 LASTEXPRESS: Don't use NULL in arithmetic
svn-id: r53783
2010-10-25 00:16:38 +00:00
Julien Templier
859c1c2c08 LASTEXPRESS: Fix issues when copying debugger commands
- Properly free allocated memory in resetCommand()
 - Make sure _commandParams strings are null-terminated

svn-id: r53778
2010-10-24 22:15:36 +00:00
Julien Templier
f812f88c10 LASTEXPRESS: Add new dump command to dump the list of files in the archives (with size & md5)
svn-id: r53749
2010-10-23 22:02:52 +00:00
Julien Templier
90974937a3 LASTEXPRESS: Reorganize and enhance some debug commands
Add "time" command to convert between in-game and human-readable forms
Rename "dump" command to "show" and use named parameters instead of index
Add progress and flags options to show command

svn-id: r53715
2010-10-22 22:00:27 +00:00
Julien Templier
fed894aeee LASTEXPRESS: Add missing casts, fix warnings and correct typos
svn-id: r53694
2010-10-22 01:30:18 +00:00
Eugene Sandulenko
86d650926f LASTEXPRESS: Merge in the engine.
svn-id: r53579
2010-10-18 19:17:38 +00:00