aboutsummaryrefslogtreecommitdiff
path: root/sword2
AgeCommit message (Collapse)Author
2004-06-08Added a few comments, rewrote a few others, and added a couple of assert()sTorbjörn Andersson
svn-id: r13947
2004-06-07Added comment.Torbjörn Andersson
svn-id: r13946
2004-06-06Cleaned up sprite scaling.Torbjörn Andersson
svn-id: r13944
2004-06-05CleanupTorbjörn Andersson
svn-id: r13933
2004-05-10Close menus before restarting. (This is a purely cosmetical fix.)Torbjörn Andersson
svn-id: r13831
2004-05-10Fixed typo.Torbjörn Andersson
svn-id: r13830
2004-05-09Forgot to remove this file when I changed input handling.Torbjörn Andersson
svn-id: r13813
2004-05-09Removed the buffering of mouse and keyboard events. I don't think any ofTorbjörn Andersson
our other engines do this, so there is little reason for BS2 to. I did add a filtering mechanism so that mouse button releases and scroll wheeling is ignored during normal gameplay, but I don't know if that was necessary either. Since this left little more than an empty husk where the Input class used to be, I've eliminated that class and buried its remains in Sword2Engine. svn-id: r13812
2004-05-09When drawing lines and points, mark the corresponding screen area as dirtyTorbjörn Andersson
so that it gets properly redrawn. Only the debugging code uses these drawing primitives, so it's no big deal, but it's still the right thing to do. svn-id: r13811
2004-05-09My recent sound changes broke "restart". This should un-break it again.Torbjörn Andersson
svn-id: r13810
2004-05-07Cleanup.Torbjörn Andersson
svn-id: r13806
2004-05-05Take advantage of the changes in the backend's mouse cursor handling. ItTorbjörn Andersson
didn't do the change I was hoping for: the coyote stone is still partially see-through, but perhaps it was in the original as well. At least we no longer need to keep the buffer the mouse cursor is decoded to, since that's now handled by the backend. svn-id: r13782
2004-05-05Cleanup.Torbjörn Andersson
Part of this cleanup involved removing _unpauseZone. It was only used by fnISpeak(), and as far as I could tell it was just because the original code didn't trust amISpeaking() and getSpeechStatus() to return sensible values directly after unpausing the game. svn-id: r13781
2004-05-01Simplified the handling of sound effects. It's not necessary for the driverTorbjörn Andersson
to keep its own copy of the sound data. It could be even further simplified (I don't really see any reason for having two different sound queues), but I seem to have reached a point of stability here and I don't want to jinx it by making further changes yet. svn-id: r13705
2004-05-01Made the "debugoff" console command actually turn *off* the debug info.Torbjörn Andersson
svn-id: r13704
2004-04-28Cleanup. I plan to take a closer look at the sound effects handling later.Torbjörn Andersson
svn-id: r13661
2004-04-27CleanupTorbjörn Andersson
svn-id: r13649
2004-04-26Tweaked a few things to accommodateJamieson Christian
MSVC6's idiosyncracies. svn-id: r13644
2004-04-26Cleanup. Mostly removal of redundant comments.Torbjörn Andersson
I've also made the SaveGameHeader struct packed, which may break savegame compatibility on some architectures (though not on the Linux and Windows boxes I've tried it on). But I'm hoping it will guarantee, or at least make it more likely, that savegames will be portable across architectures. svn-id: r13634
2004-04-24fetchObjectName() no longer assumes that the resource will still be in theTorbjörn Andersson
cache after it's been closed. (Currently it always is, but ideally I'd like for BS to work even if resource caching is disabled.) svn-id: r13610
2004-04-23Fixed a crash regression in setLuggage() that was caused by a change ITorbjörn Andersson
didn't make. :-) (That is, I made the change and then thought better of it, but I forgot to change one line back to its original form.) svn-id: r13608
2004-04-23I forgot to clear the reference counter when a resource is forcibly removedTorbjörn Andersson
and I may as well clear it when a resource is read from disk as well. svn-id: r13606
2004-04-23Major revamping of the BS2 memory manager and, some small changes to theTorbjörn Andersson
resource manager. All new code! All new bugs! svn-id: r13603
2004-04-16CleanupTorbjörn Andersson
svn-id: r13582
2004-04-14Cleanup. (Mostly of the comments.)Torbjörn Andersson
svn-id: r13579
2004-04-07Cleanup.Torbjörn Andersson
svn-id: r13495
2004-04-07Cleanup.Torbjörn Andersson
svn-id: r13494
2004-04-07Added notice about how I think CP_PUSH_LOCAL_ADDR is used.Torbjörn Andersson
svn-id: r13493
2004-04-07Cleanup. (Mostly to change the wording and priority of the debuggingTorbjörn Andersson
messages to be more like in BS1.) svn-id: r13491
2004-04-04Cleanup.Torbjörn Andersson
svn-id: r13457
2004-03-30CleanupTorbjörn Andersson
svn-id: r13431
2004-03-29Cleanup.Torbjörn Andersson
This removes a bunch of debugging code/commands that either didn't do anything useful under ScummVM (e.g. "soft" and "hard"), or which did things that was already easily avaiable elsewhere (e.g. "save" and "restore"). I didn't have the heart to remove the "tony" command, though. :-) svn-id: r13422
2004-03-29Make clearScene() set the _needFullRedraw variable.Torbjörn Andersson
I think the reason I didn't do this from the start was that BS2 used to call clearScene(), or whatever the function was called back then, between every frame. Nowadays, it simply assumes that each frame will cover the previous one. Anyway, this change prevents the restart/restore dialog from appearing briefly between the two intro cutscene animations. svn-id: r13421
2004-03-28Renamed more OSystem methodsMax Horn
svn-id: r13410
2004-03-28More format string fixes.Torbjörn Andersson
svn-id: r13407
2004-03-28Fixed paramters to match format string.Torbjörn Andersson
svn-id: r13406
2004-03-28Fixed format string to match parameters.Torbjörn Andersson
svn-id: r13405
2004-03-28Cleanup.Torbjörn Andersson
One of the changes, I'm not quite sure about: buildDisplay() used to open and close the _thisScreen.background_layer_id resource for each layer it processed. In particular, it used to "release the screen resource before cacheing the sprites". I have no idea why, because I can't see any trace of a sprite cache, and I can't think of any harm in keeping the resource open during the whole render cycle. The resource is probably loaded into memory already anyway, though its reference counter may be 0. svn-id: r13401
2004-03-28Force the engine to pick a cursor after restoring a game. This appears toTorbjörn Andersson
be needed when using the -x command-line option to restore a game, though I'm not quite sure why. svn-id: r13400
2004-03-28Don't show the restart/restore dialog if a boot parameter has been given.Torbjörn Andersson
And a teensy-weensy little cleanup. svn-id: r13399
2004-03-28Fixed bug I introduced in the recent cleanup: It's the screen, not theTorbjörn Andersson
overlay, that needs to be cleared at the beginning of the movie. Otherwise what was on the screen may show at the end of the movie. svn-id: r13398
2004-03-27Make sure looping music is restarted after loading a savegame, regardlessTorbjörn Andersson
of how the savegame is loaded. (ScummVM adds two alternative methods: the -x command-line parameter, and the restart/restore dialog at the beginning of the game, which is only shown when there are savegames available.) svn-id: r13386
2004-03-27cleanupTorbjörn Andersson
svn-id: r13385
2004-03-24Use the binary .pal file format that was introduced for 0.6.0.Torbjörn Andersson
Invalidate the lookup table when the screen changes. (TODO: We also have to invalidate it if the change happens between cutscenes, don't we?) Some cleanup, particularly in the BS2 cutscene player. More needed, I guess... svn-id: r13377
2004-03-23Unify MPEG2 code even moreMax Horn
svn-id: r13365
2004-03-22share 'init' method, tooMax Horn
svn-id: r13361
2004-03-22Fix crash introduced by recent code unification. (Mind you, I'm stillTorbjörn Andersson
extremely grateful that the BS1 and BS2 cutscene players are finally sharing at least some of their code now.) svn-id: r13360
2004-03-22some more cleanupMax Horn
svn-id: r13359
2004-03-22move commong code into separate source file (more could be done, but it's a ↵Max Horn
start) svn-id: r13358
2004-03-21Moved Surface/Font code into new 'graphics' moduleMax Horn
svn-id: r13357