Commit Graph

149 Commits

Author SHA1 Message Date
James Brown
33d7e5a093 Don't crash if unable to play cutscene music.
svn-id: r12566
2004-01-21 08:50:15 +00:00
Torbjörn Andersson
61c37c97c7 Changed printf() to warning()
svn-id: r12538
2004-01-20 13:28:49 +00:00
Torbjörn Andersson
bd34655abb I assume this fixes CPU usage in synced cutscene playback, but since I
don't have said cutscenes I can't really check. (I did the same change for
BS2 though.)

svn-id: r12537
2004-01-20 13:27:17 +00:00
Max Horn
e67b734fd2 fixed warning
svn-id: r12494
2004-01-18 18:42:58 +00:00
Paweł Kołodziejski
ef9732f1f5 fix compilation
svn-id: r12467
2004-01-18 07:21:10 +00:00
James Brown
ad46828d1c BS1 cutscene support. Also bugfixes (don't crash if cutscene ogg unavailable)
svn-id: r12465
2004-01-18 05:52:04 +00:00
Nicolas Bacca
21eff1eef2 And again ... guess who fails compiling this ?
svn-id: r12453
2004-01-17 11:16:38 +00:00
Torbjörn Andersson
9b13e872b3 I found and fixed a nasty fade-up bug in BS2. I don't know if the same
situation could happen in BS1, but it's better to be safe than sorry, so
here are the same changes, as applied to the BS1 music code.

svn-id: r12393
2004-01-14 18:39:24 +00:00
Torbjörn Andersson
2fb7d4c553 Changed the music fading so that the volume is increased when ABS(_fading)
grows larger, both when fading up and down. This fixes the problem where
the volume would "jump" when changing the fading "direction" of a stream.

svn-id: r12373
2004-01-14 08:09:03 +00:00
Torbjörn Andersson
7309705db5 cleanup
svn-id: r12322
2004-01-11 16:53:33 +00:00
Torbjörn Andersson
efb03e0024 Changed dumpRes() to use the File class. (Untested.)
svn-id: r12321
2004-01-11 16:27:36 +00:00
Torbjörn Andersson
cf0a73f913 Introduced new namespace, Sword1, removing the "Sword" and "Bs" prefixes in
the process, except for SwordEngine.

Some minor cleanups along the wa, e.g. stdafx.h already includes <stdio.h>,
<stdlib.h> and <math.h> so there shouldn't be any need to do it elsewhere.

svn-id: r12320
2004-01-11 15:47:41 +00:00
Robert Göffringmann
ce3855f02b fix for bug #872916: BS1 scrolling glitch
svn-id: r12271
2004-01-09 05:11:10 +00:00
Torbjörn Andersson
150805b18c Merged read() and readBuffer(), like in BS2.
svn-id: r12248
2004-01-08 13:05:32 +00:00
Torbjörn Andersson
d9e67812e8 Changed spaces to tabs.
svn-id: r12235
2004-01-08 08:29:55 +00:00
Robert Göffringmann
63fbde359a implemented drawing of additional scrolling frames
svn-id: r12223
2004-01-07 19:08:59 +00:00
Torbjörn Andersson
821bbed1e0 Tried to make the menus behave a bit more like the original. Perhaps most
noticeably:

* It no longer matters where you release the mouse button when talking to
  someone. It uses whatever topic you selected on mouse-down.

* The inventory menu doesn't vanish if you're holding an object, even if
  you move the pointer away from it.

* When using an object on a character (to talk to him about it), the top
  menu fades away, rather than vanishing instantly.

Ok, that last change is rather non-obvious, but it does obsolete the
clearMenu() function, which has therefore been removed.

svn-id: r12222
2004-01-07 19:03:30 +00:00
Robert Göffringmann
8e30afd438 some changes for Czech version
svn-id: r12221
2004-01-07 18:08:24 +00:00
Robert Göffringmann
8030f1b148 implemented volume control panel
svn-id: r12220
2004-01-07 17:47:46 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Jonathan Gray
2be1b4d68a start work on czech subtitle support, not finished
svn-id: r12175
2004-01-06 12:28:24 +00:00
Robert Göffringmann
7b86116a5d fixed cd changing code
svn-id: r12174
2004-01-06 12:19:02 +00:00
Robert Göffringmann
e34d7b6c41 get volume from gamedetector
svn-id: r12169
2004-01-06 11:48:30 +00:00
Robert Göffringmann
9d547b183b fixed screen updating
svn-id: r12146
2004-01-04 17:40:51 +00:00
Robert Göffringmann
4ca49386ed fixed cd changing code
svn-id: r12145
2004-01-04 17:19:17 +00:00
Torbjörn Andersson
92561301ac Deal gracefully with missing music files.
svn-id: r12144
2004-01-04 16:19:15 +00:00
Max Horn
d1e6c6059e renamed global var _debugLevel to g_debugLevel; let Engine constructor init 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-04 14:00:58 +00:00
Robert Göffringmann
cfcb22939f nothing.
svn-id: r12129
2004-01-04 06:38:14 +00:00
Robert Göffringmann
a9a84aee22 added control panel confirmation dialog.
svn-id: r12128
2004-01-04 06:31:29 +00:00
Robert Göffringmann
f0d0e4d4b3 removed speed button from control panel and made the game do a full screen refresh after leaving the control panel
svn-id: r12127
2004-01-04 05:21:22 +00:00
Max Horn
d49082065a TODO
svn-id: r12117
2004-01-03 20:42:18 +00:00
Max Horn
bfea71b0c4 renamed AudioInputStream -> AudioStream
svn-id: r12110
2004-01-03 14:10:13 +00:00
Robert Göffringmann
2a6745a986 changed screen drawing code to only redraw blocks that changed.
svn-id: r12109
2004-01-03 12:29:21 +00:00
Torbjörn Andersson
e73363bd09 Delete the mutex when we're done with it.
svn-id: r12107
2004-01-03 11:12:35 +00:00
Robert Göffringmann
edea972b4b eriktorbjorn's fix for a crash when sprite were completely outside of the screen
svn-id: r12106
2004-01-03 10:49:08 +00:00
Torbjörn Andersson
750e18eab3 Moved the menu refreshing to a separate function so that it can be easily
accessed even when checkMenuClick() returns before reaching the end of the
function.

Used this to fix a menu highlighting regression.

svn-id: r12083
2004-01-02 11:15:35 +00:00
Robert Göffringmann
315dc0238c another change in the clicking checks
svn-id: r12078
2004-01-02 02:38:01 +00:00
Robert Göffringmann
2b3d8a42dd implemented examining inventory items
svn-id: r12075
2004-01-01 18:00:34 +00:00
Robert Göffringmann
82ef464a69 fixed savename drawing.
svn-id: r12074
2004-01-01 17:18:00 +00:00
Robert Göffringmann
a55c9976e2 whoops.
svn-id: r12073
2004-01-01 17:11:43 +00:00
Robert Göffringmann
bd5ec2612b added workaround for missing music file.
svn-id: r12072
2004-01-01 17:10:08 +00:00
Robert Göffringmann
cf12a5846f changed music fading duration and made music system fade down the tracks on startMusic(0)
svn-id: r12071
2004-01-01 16:56:00 +00:00
Torbjörn Andersson
18f8916c3a Rewrote the music code. It now follows the same basic idea as the one in
BS2, which has worked pretty well so far. I haven't implemented pausing and
volume since the code I replaced didn't have it either, as far as I could
tell.

svn-id: r12070
2004-01-01 15:22:15 +00:00
Jonathan Gray
9b4f73b8ef compilation fix
svn-id: r12066
2004-01-01 08:55:26 +00:00
Torbjörn Andersson
0aeae5a9b5 Use uint8 instead of char to avoid crashes with some accented characters.
svn-id: r12061
2003-12-31 17:38:27 +00:00
Robert Göffringmann
9a064972c2 fixed language strings
svn-id: r12060
2003-12-31 16:56:16 +00:00
Torbjörn Andersson
d176a6a6e1 Don't lose the luggage when entering the inventory menu.
svn-id: r12058
2003-12-31 15:52:48 +00:00
Torbjörn Andersson
15559f6646 Draw the luggage first, then the mouse pointer.
svn-id: r12057
2003-12-31 15:41:17 +00:00
Jonathan Gray
de014ec971 fix segfault
svn-id: r12049
2003-12-31 12:32:34 +00:00
Robert Göffringmann
e669103b5d removed old, useless stuff
svn-id: r12045
2003-12-30 23:08:51 +00:00