aboutsummaryrefslogtreecommitdiff
path: root/sword2
AgeCommit message (Collapse)Author
2004-01-07Valgrind fixes. Mostly about memory not being freed when the engine isTorbjörn Andersson
deleted. svn-id: r12211
2004-01-06Never call _system->quit() directly. Let ScummVM handle that so that theTorbjörn Andersson
engine can be properly deleted first. Apart from being the nice thing to do, this should make it easier to Valgrind for memory leaks. svn-id: r12184
2004-01-06It's a new year in BS2 land, too!Torbjörn Andersson
svn-id: r12181
2004-01-06Made sure the screen is really cleared when drawing a dialog window, plusTorbjörn Andersson
some other cleanups. (This was a regression caused by the less stupid screen updates implemented recently.) svn-id: r12180
2004-01-05Marked some more structs as packed. I don't know if it makes anyTorbjörn Andersson
difference, as they contain only 32-bit integers, but I also believe it does no harm. svn-id: r12159
2004-01-05Changed some memmove()s to memcpy(), since the memory areas were notTorbjörn Andersson
overlapping. Enabled some sanity-checking code. Fixed clearWalkGridList() so that it clears the entire walk grid list. That was a really stupid bug of mine, and I hope it had at least some bearing on the rare (for me, at least) walk problems I've seen. svn-id: r12154
2004-01-05Tiny cleanup.Torbjörn Andersson
svn-id: r12153
2004-01-05Fixed some debugging messages so they refer to the correct function.Torbjörn Andersson
svn-id: r12152
2004-01-05Slowed down the credits slightly. With the recent optimizations, the musicTorbjörn Andersson
lasted longer than the text. Now the text lasts longer than the music. svn-id: r12151
2004-01-04Adapted LavosSpawn's idea for more efficient screen updating. It stillTorbjörn Andersson
renders the entire screen every frame, but it tries to update (i.e. copy to the backend) only the parts of the screen that actually changed. At least approximately so. svn-id: r12142
2004-01-04Some cleanup and Valgrind warning fixes.Torbjörn Andersson
svn-id: r12141
2004-01-04Update a comment to reflect that some functions have different names now.Torbjörn Andersson
svn-id: r12140
2004-01-04renamed global var _debugLevel to g_debugLevel; let Engine constructor init ↵Max Horn
it (this way all engines get it for free, allows further cleanup); removed some useless/duplicate member vars in SwordEngine svn-id: r12134
2004-01-03cleanupMax Horn
svn-id: r12116
2004-01-03fix for BE systemsMax Horn
svn-id: r12115
2004-01-03Fixed bug that made ScummVM crash when loading a savegame where the mainTorbjörn Andersson
character was walking. (I had missed a case where pointers were cast to integers.) svn-id: r12113
2004-01-03It was pointed out to me that we can't use the DEMO variable here, becauseTorbjörn Andersson
the missing file may be the one with the resource for the global variables. svn-id: r12112
2004-01-03renamed AudioInputStream -> AudioStreamMax Horn
svn-id: r12110
2004-01-03Made the music code more like the one in BS1, i.e. the fade time is longerTorbjörn Andersson
and it now fades both up and down. Plenty of cleanups, simplifications and just moving code around to group it in what I hope is a more logical fashion. Fixed a long-standing bug where spot effects would eventually use up all available sound effect handles. (I may have introduced this when I removed the expiration of sound effects from FxServer().) svn-id: r12108
2004-01-01Oops, that was the wrong data type. (Not that it should matter, but...)Torbjörn Andersson
svn-id: r12069
2003-12-31Some tweaking of the new credits code. It is no longer necessary to haveTorbjörn Andersson
to have the credits.bmp file, though if you don't you won't see the "Smacker" logo. (Whether or not this is a feature is open to debate.) Happy New Year! svn-id: r12062
2003-12-31oops, forgot one caseTorbjörn Andersson
svn-id: r12056
2003-12-31When saving the music state, remember the name of the music file that wasTorbjörn Andersson
open so that it can be re-opened afterwards. It's not so much that it may have changed, but it may have been closed. This should fix a crash when escaping the credits. svn-id: r12055
2003-12-31I still don't know how to draw the credits like the original did, but atTorbjörn Andersson
least the credits text is showing now. svn-id: r12053
2003-12-31Don't allow the credits to be displayed while in conversation mode.Torbjörn Andersson
svn-id: r12052
2003-12-31Enable the line that increases _gameCycle. There's a debugger command thatTorbjörn Andersson
will display it, and it's so much more interesting this way. :-) svn-id: r12051
2003-12-29tiny cleanupTorbjörn Andersson
svn-id: r12017
2003-12-29The game sets its own DEMO variable, so we might as well check that one asTorbjörn Andersson
checking the GF_DEMO flag. (There's still one "unnecessary" reference to GF_DEMO in functions.cpp, but I plan on rewriting that function soon so I don't want to touch it right now.) svn-id: r12009
2003-12-28Hopefully the last big renaming. Now the datatypes have names likeTorbjörn Andersson
"StandardHeader" instead of "_standardHeader". svn-id: r11997
2003-12-24o Added SoundMixer::isReady()Max Horn
o Removed SoundMixer::bindToSystem() o In scumm, replaced _silentMixer, _silentDigitalImuse and _noDigitalSamples by SoundMixer::isReady() svn-id: r11893
2003-12-24turned PlayingSoundHandle into an 'opaque' (well not really :-) data type, ↵Max Horn
mainly because people kept (accidentally and sometimes on purpose :-) misusing them svn-id: r11881
2003-12-21Make it possible for game detection functions to detect language/platform ↵Max Horn
(not yet done by any detector, but will come with the MD5 detection code) svn-id: r11811
2003-12-20Make VC6/EVC happierNicolas Bacca
svn-id: r11764
2003-12-19Fixed bug with looping music. It must have been there all along, but maybeTorbjörn Andersson
the recent mixer changes made it more audible. Or maybe I just didn't listen until now. svn-id: r11763
2003-12-19Implemented scroll wheel handling for save/load dialogs. (This turned up aTorbjörn Andersson
few other hitherto harmless bugs, which I've hopefully managed to fix.) svn-id: r11762
2003-12-19distinguish between end of stream and end of dataMax Horn
svn-id: r11756
2003-12-19unregister the premix proc when you go awayMax Horn
svn-id: r11755
2003-12-19I am going to remove the default implementation of readBuffer() ↵Max Horn
(AudioInputStream subclasses really really should implement readBuffer() for good performance) svn-id: r11753
2003-12-17My last commit didn't work on big-endian. Maybe this one does...Torbjörn Andersson
svn-id: r11711
2003-12-17The mixer handles little-endian samples now. Take advantage of that.Torbjörn Andersson
svn-id: r11707
2003-12-17fixed warningPaweł Kołodziejski
svn-id: r11705
2003-12-17cleanupTorbjörn Andersson
svn-id: r11704
2003-12-17Made sure that *all* AudioInputStream 'know' their sample rate; removed ↵Max Horn
pointless MusicStream class; removed various specific Channel subclasses and instead generalized the base class some more svn-id: r11699
2003-12-15Tiny whitespace change. (No, as a matter of fact I don't have anythingTorbjörn Andersson
better to do. :-) svn-id: r11649
2003-12-14Mostly cleanups, but I believe this also fixes an endian problem in theTorbjörn Andersson
"restart script" opcode. To actually verify this, though, I'd need to find a case where any other script than script 0 at offset 0 is restarted... svn-id: r11638
2003-12-14Fixed a potential crash bug where an audio buffer would be freed at the endTorbjörn Andersson
of an animated cutscene while the mixer was still using it. Oddly enough, I didn't encounter this bug when I played through the game recently, but today it happened every time at the end of the cutscene where Nico finds the jaguar stone. svn-id: r11637
2003-12-13removed GameSettings::detectname and GameSettings::midi; renamed ↵Max Horn
GameSettings::gameName to name; added temporary experimental MD5 hack svn-id: r11603
2003-12-11cleanupTorbjörn Andersson
svn-id: r11581
2003-12-10Restored some relevant information to a comment that was removed by myTorbjörn Andersson
previous commit. svn-id: r11551
2003-12-10Sprite surfaces (as opposed to standard sprites) are always displayTorbjörn Andersson
aligned, never flipped and never RLE16-compressed. Simplified the code accordingly. (Displaying the restore dialog when specifying an unused save slot from the command-line works again now.) Plus some minor cleanups. svn-id: r11550