138 Commits

Author SHA1 Message Date
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
Robert Göffringmann
436834750d cd changing code and checking for savegames on startup
svn-id: r12043
2003-12-30 22:57:52 +00:00
Robert Göffringmann
985f24729a forgot these...
svn-id: r12040
2003-12-30 21:48:10 +00:00
Robert Göffringmann
5e947dab38 implemented mouse luggage stuff
svn-id: r12039
2003-12-30 21:32:50 +00:00
Robert Göffringmann
1567e39469 fixed fnFace() and added workaround for missing animation on train roof
svn-id: r12032
2003-12-30 16:19:30 +00:00
Robert Göffringmann
0c7b09fc5e another reference fix for soldout version
svn-id: r12014
2003-12-29 16:08:05 +00:00
Robert Göffringmann
4e1e77b0a5 use correct sprite for text-on/off
svn-id: r12013
2003-12-29 16:01:47 +00:00
Robert Göffringmann
ba44d8e989 fix resource references for soldout version
svn-id: r12012
2003-12-29 15:54:06 +00:00
Robert Göffringmann
1c06aebe39 made control panel use the correct fonts
svn-id: r12010
2003-12-29 15:38:16 +00:00
Torbjörn Andersson
e559a32323 Changed spaces to tabs
svn-id: r12008
2003-12-29 14:04:57 +00:00
Robert Göffringmann
e9766658b6 this fixes the remaining glitches
svn-id: r12004
2003-12-28 23:24:03 +00:00
Torbjörn Andersson
85deabed70 Indentation fixes: changed spaces to tabs. (These tend to really stick out
in my editor, since it shows tabs as eight spaces, not four.)

svn-id: r12002
2003-12-28 19:03:35 +00:00