Commit Graph

33 Commits

Author SHA1 Message Date
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
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Torbjörn Andersson
4089b9fe2c JANITORIAL: Remove unnecessary semicolons
svn-id: r53889
2010-10-27 19:48:54 +00:00
Julien Templier
dba75791d9 LASTEXPRESS: Add some missing casts and const qualifiers
svn-id: r53880
2010-10-27 19:19:22 +00:00
Julien Templier
5323be5f84 LASTEXPRESS: Fix GCC warnings
svn-id: r53850
2010-10-26 12:49:32 +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
fd8af7ba6e LASTEXPRESS: Make GameState::time of type TimeValue
svn-id: r53844
2010-10-26 06:55:17 +00:00
Max Horn
3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +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
Julien Templier
06d9de0a9b LASTEXPRESS: Fix GCC errors & warnings (missing stricmp & parentheses)
svn-id: r53693
2010-10-22 00:35:37 +00:00
Julien Templier
a54783c414 LASTEXPRESS: Merge several TIME_CHECK* macros together
svn-id: r53692
2010-10-21 23:46:00 +00:00
Julien Templier
002557fbd2 LASTEXPRESS: Rename CURRENT_PARAMS to CURRENT_PARAM
svn-id: r53691
2010-10-21 23:44:59 +00:00
Julien Templier
4466e2a20d LASTEXPRESS: Simplify some entity callback code
svn-id: r53690
2010-10-21 23:44:27 +00:00
Julien Templier
af36047c71 LASTEXPRESS: Rename LOBYTE macro
svn-id: r53689
2010-10-21 23:43:57 +00:00
Julien Templier
3abbcfd780 LASTEXPRESS: Implement remaining AI logic functions for MmeBoutarel
svn-id: r53688
2010-10-21 23:43:36 +00:00
Julien Templier
a3d4181e00 LASTEXPRESS: Implement remaining AI logic functions for Coudert
svn-id: r53687
2010-10-21 23:43:04 +00:00
Julien Templier
f22c915a91 LASTEXPRESS: Implement remaining AI logic functions for Anna
svn-id: r53686
2010-10-21 23:42:31 +00:00
Julien Templier
21a25a99f5 LASTEXPRESS: Implement remaining AI logic functions for Tatiana
svn-id: r53685
2010-10-21 23:41:56 +00:00
Julien Templier
def40a625a LASTEXPRESS: Implement remaining AI logic functions for Kahina and Kronos
svn-id: r53684
2010-10-21 23:41:22 +00:00
Julien Templier
08f905fe56 LASTEXPRESS: Implement remaining AI logic functions for August
svn-id: r53683
2010-10-21 23:40:47 +00:00
Julien Templier
b347156e78 LASTEXPRESS: Implement remaining AI logic functions for Francois, Gendarmes and Milos
svn-id: r53682
2010-10-21 23:40:14 +00:00
Julien Templier
c35d23aa95 LASTEXPRESS: Implement 7 AI logic functions
svn-id: r53681
2010-10-21 23:39:48 +00:00
Julien Templier
a621302a71 LASTEXPRESS: Implement 10 more AI logic functions
svn-id: r53680
2010-10-21 23:38:35 +00:00
Julien Templier
c105e05a02 LASTEXPRESS: Fix typo in Mertens::function42()
This caused Mertens to invite you to Kronos's car, even before you've been
to Whitney's compartment, changed jacket and assumed his identity
(reported by eriktorbjorn)

svn-id: r53659
2010-10-20 22:36:50 +00:00
Jordi Vilalta Prat
59c054938a LASTEXPRESS: Fix some space formatting.
svn-id: r53629
2010-10-19 22:34:26 +00:00
Torbjörn Andersson
490d4aef0e LASTEXPRESS: Changed some spaces to tabs
svn-id: r53618
2010-10-19 19:54:15 +00:00
Julien Templier
fdaa1b9c61 LASTEXPRESS: Merge parameter creation into resetCurrentParameters()
svn-id: r53599
2010-10-19 01:42:00 +00:00
Julien Templier
01669d8de0 LASTEXPRESS: Rewrite resetCurrentParameters to use a temporary var
Per LordHoto suggestion, to see if it fixes compilation on motoezx & PS2

svn-id: r53598
2010-10-19 00:45:53 +00:00
Julien Templier
0c72b1800d LASTEXPRESS: Fix GCC warnings
svn-id: r53588
2010-10-18 21:03:28 +00:00
Julien Templier
6a67bfd85d LASTEXPRESS: Implement 3 more AI logic functions
svn-id: r53587
2010-10-18 20:39:54 +00:00
Eugene Sandulenko
86d650926f LASTEXPRESS: Merge in the engine.
svn-id: r53579
2010-10-18 19:17:38 +00:00