Commit Graph
43 Commits
Author SHA1 Message Date
Le Philousophe abb4c3cd6c LASTEXPRESS: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh f8881f661b LASTEXPRESS: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Evgeny Grechnikov 39ad93d738 LASTEXPRESS: fix gcc build 2018-08-26 12:09:43 +02: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 cbb7c71c89 LASTEXPRESS: Add asserts in EntityData serialization code. CID 1003265 2014-06-16 18:46:22 -04:00
Johannes Schickel 3d4f409572 LASTEXPRESS: Make GPL headers consistent in themselves. 2014-02-18 02:39:35 +01:00
Littleboy 1314c5c128 LASTEXPRESS: Rename Object properties 2013-12-10 01:54:56 -05:00
Littleboy 275aded0b0 LASTEXPRESS: Remove unnecessary casts 2012-08-27 21:49:40 -04:00
Littleboy 2c0033c7ba LASTEXPRESS: Add const modifiers 2012-08-27 21:49:38 -04:00
Littleboy cec57e0918 LASTEXPRESS: Reduce header interdependency 2012-08-27 21:49:37 -04:00
Littleboy 7f05e1413c LASTEXPRESS: Remove use of skip from savegame functions when loading
We cannot accurately skip over compressed data as it is not know before decoding how much data will be used
2012-08-01 02:58:55 -04:00
Littleboy 42c9b405f1 LASTEXPRESS: Untemplatize setup functions 2012-07-27 23:23:17 -04:00
Littleboy e91001a164 LASTEXPRESS: Remove templated resetCurrentParameters() function 2012-07-27 13:36:21 -04:00
Littleboy 6aeda2638b LASTEXPRESS: More include re-organization 2012-07-27 00:54:24 -04:00
Julien 115a4d36ba LASTEXPRESS: Move includes to header for setup function templates 2012-07-27 00:32:10 -04:00
Julien b4b4a7d127 LASTEXPRESS: Replace setup macros by functions 2012-07-27 00:15:05 -04:00
Julien 813c2bb965 LASTEXPRESS: Merge the remaining macros in entity_intern.h into entity.h 2012-07-27 00:15:04 -04:00
Julien 938961e237 LASTEXPRESS: Remove TIME_CHECK_CALLBACK_1 macro 2012-07-27 00:15:03 -04:00
Julien 8545991739 LASTEXPRESS: Remove several TIME_CHECK* macros 2012-07-27 00:15:00 -04:00
Julien 8de4cb6547 LASTEXPRESS: Replace UPDATE_PARAM_PROC and UPDATE_PARAM_PROC_TIME macros 2012-07-27 00:14:58 -04:00
Julien e13290a028 LASTEXPRESS: Replace UPDATE_PARAM_CHECK macro 2012-07-27 00:14:57 -04:00
Julien 95503250f8 LASTEXPRESS: Replace UPDATE_PARAM macro 2012-07-27 00:14:56 -04:00
Julien 2e20e1d1e2 LASTEXPRESS: Replace TIME_CHECK_PLAYSOUND_UPDATEPOSITION macro 2012-07-27 00:14:55 -04:00
Julien c589e69ec9 LASTEXPRESS: Replace TIME_CHECK_CALLBACK_ACTION macro 2012-07-27 00:14:55 -04:00
Julien 5d4a8f1e15 LASTEXPRESS: Remove use of function wrappers in shared entity functions 2012-07-27 00:14:54 -04:00
Littleboy 6a8d037af1 LASTEXPRESS: Fix variable shadowing and update comments 2012-07-19 20:58:40 -04:00
Littleboy d830c0edc9 LASTEXPRESS: Replace TIME_CHECK_SAVEPOINT and TIME_CHECK_OBJECT macros 2012-07-16 23:51:32 -04:00
Littleboy 3d1b7b2d96 LASTEXPRESS: Merge the two savegameBloodJacket functions into the base Entity class 2012-07-16 23:51:28 -04:00
Littleboy 132dd5b4bc LASTEXPRESS: Replace SYNC_STRING macro by function 2012-07-16 23:51:27 -04:00
Littleboy 876a8f9377 LASTEXPRESS: Replace COMPARTMENT_TO and COMPARTMENT_FROM_TO macros 2012-07-16 23:51:25 -04:00
Littleboy 4cee0836c9 LASTEXPRESS: Replace CALLBACK_ACTION macro by member function 2012-07-14 14:34:42 -04:00
Littleboy 732a2c80dd LASTEXPRESS: Remove duplicated include statements 2012-07-14 13:23:54 -04:00
Littleboy b4ac4988cc LASTEXPRESS: Cleanup comments 2011-06-28 22:54:51 -04:00
Littleboy 90dc4f9a8c LASTEXPRESS: Move Sound class to the sound folder 2011-06-28 22:30:24 -04:00
Littleboy 5d020fffad LASTEXPRESS: Refactor Sound class
- Move entry-related functions to separate class
 - Move enumeration to shared header and rename FlagType to SoundFlag
2011-06-24 10:56:49 -04:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Julien Templier da90fa1405 LASTEXPRESS: Fix SequenceFrame leak in Entities code
- Add EntityCallData destructor to dispose of frames & Sequences
 - Properly dispose of frames in Entities::resetSequences()

svn-id: r54270
2010-11-16 14:06:59 +00:00
Julien Templier 521f228ced LASTEXPRESS: Use SAFE_DELETE for class variables
svn-id: r54201
2010-11-11 14:19:44 +00:00
Julien Templier 6711c5a8cf LASTEXPRESS: Fix more memory leaks
- Missing deallocation of queued frames in SceneManager
 - Leaking functor on each call to entity setup functions
 - Add SoundEntry destructor & better Entity cleanup

as reported by digitall

svn-id: r54196
2010-11-11 06:18:23 +00:00
Julien Templier dc4a22ed7d LASTEXPRESS: More savegame work
- Implement SaveLoad::writeEntry
 - Implement missing saveLoadWithSerializer functions for all serialized classes & structs
 - Add stub for SaveLoad::computePadding

svn-id: r53845
2010-10-26 06:55:34 +00:00
Julien Templier 002557fbd2 LASTEXPRESS: Rename CURRENT_PARAMS to CURRENT_PARAM
svn-id: r53691
2010-10-21 23:44:59 +00:00
Eugene Sandulenko 86d650926f LASTEXPRESS: Merge in the engine.
svn-id: r53579
2010-10-18 19:17:38 +00:00