Torbjörn Andersson
7b9f508729
This fixes bug #917427 , a masking problem, hopefully without causing any
...
regressions.
What the patch does is to make sure to check all layers when masking a
sprite, since it's possible that it's being masked by several layers at the
same time. The old code simply picked the first masking layer.
svn-id: r13744
2004-05-02 13:54:05 +00:00
Max Horn
14378cb56e
Renamed more OSystem methods
...
svn-id: r13410
2004-03-28 16:30:50 +00:00
Torbjörn Andersson
82c451774c
When scrolling, force a full redraw not only when the scroll offset changes
...
but also on the first frame where it doesn't. This is necessary because
parallax layers may be drawn on the *old* scroll offset (for reasons
unknown to me).
To see the bug, walk right from the first screen until you reach the tree.
Notice how the part of the tree you walk behind gets redrawn slightly to
the left.
svn-id: r13120
2004-03-01 08:04:10 +00:00
James Brown
b77231a9a3
Fix from Roever for bug #892827
...
svn-id: r13107
2004-03-01 04:05:10 +00:00
Max Horn
c6752cccf5
renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
...
svn-id: r13087
2004-02-28 12:58:13 +00:00
Torbjörn Andersson
e40e3dd530
Cody56's fix for a minor graphics glitch.
...
<Cody56> but don't commit it to the 0.6.0 branch
svn-id: r12993
2004-02-22 16:31:32 +00:00
Torbjörn Andersson
95831a2d5b
Free _screenBuf and _screenGrid before allocating new ones.
...
svn-id: r12990
2004-02-22 16:09:34 +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
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
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
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Robert Göffringmann
9d547b183b
fixed screen updating
...
svn-id: r12146
2004-01-04 17:40:51 +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
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
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
Robert Göffringmann
e9766658b6
this fixes the remaining glitches
...
svn-id: r12004
2003-12-28 23:24:03 +00:00
Nicolas Bacca
a1831ee4fb
Microsoft Compilers : Which part of the standard do you want to break today ?
...
svn-id: r11866
2003-12-23 00:59:18 +00:00
Robert Göffringmann
e9ff3a1146
fixed some animation bugs
...
svn-id: r11862
2003-12-22 23:38:23 +00:00
Robert Göffringmann
2df01e0abb
fixed screen and music fading
...
svn-id: r11861
2003-12-22 23:21:28 +00:00
Robert Göffringmann
7fec7cc1ae
another change to verticalMask(). this should fix the remaining sprite priority issues
...
svn-id: r11853
2003-12-22 11:51:27 +00:00
Robert Göffringmann
42cea0975a
added fnSetPaletteToFade/fnSetPaletteToCut
...
svn-id: r11851
2003-12-22 11:23:40 +00:00
Robert Göffringmann
fd4417e6bb
changed the way the control panel is started
...
svn-id: r11844
2003-12-22 01:20:47 +00:00
Robert Göffringmann
6b0fb6585c
work around a GCC bug.
...
svn-id: r11843
2003-12-22 00:34:02 +00:00
Torbjörn Andersson
a5eca2df04
Highlight the correct (I hope!) menu icon during conversation, and do the
...
cheesy menu fade-in/fade-out.
svn-id: r11831
2003-12-21 17:55:40 +00:00
Robert Göffringmann
6df4db88cd
fixed scrolling
...
svn-id: r11830
2003-12-21 17:45:15 +00:00
Robert Göffringmann
44887cc33d
fixed parallax drawing for room 54
...
svn-id: r11828
2003-12-21 17:34:44 +00:00
Robert Göffringmann
2554ced5e9
fixed crashes after restoring a savegame, added fnSetPaletteToFade and changed speech code to distinguish between CD1 and CD2. (now needs SPEECH1.CLU and SPEECH2.CLU)
...
svn-id: r11789
2003-12-20 20:20:53 +00:00
Robert Göffringmann
f533de72e4
sprites should now be rendered correctly.
...
svn-id: r11784
2003-12-20 15:26:44 +00:00
Torbjörn Andersson
8789ca10e3
Modified the calculation of where to draw parallaxes to be more like the
...
one in Broken Sword II. At least the first room appears to behave like the
original now. (Except for a masking bug, which is almost certainly
unrelated to parallaxes.)
svn-id: r11781
2003-12-20 13:43:40 +00:00
Torbjörn Andersson
456f01b8fd
A comment in decompressRLE0() said that the images are vertically flipped,
...
but I'm not so sure. I've changed the code to assume that they're not, and
this fixes both the drawing of the worker in the background of the first
room, and of the fan at the police station.
svn-id: r11780
2003-12-20 13:35:00 +00:00
Torbjörn Andersson
34433d87bb
Changed abs() to ABS(), and changed a sorting function to use SWAP()
...
svn-id: r11761
2003-12-19 14:16:31 +00:00
Torbjörn Andersson
b179e8f6ec
Whitespace changes
...
svn-id: r11760
2003-12-19 14:07:12 +00:00
Robert Göffringmann
aa6e1ba760
big endian typecasts for FROM_LE_xx
...
svn-id: r11727
2003-12-18 01:00:42 +00:00
Robert Göffringmann
5d2c2acf90
one more big endian fix
...
svn-id: r11725
2003-12-18 00:36:42 +00:00
Robert Göffringmann
5fdff2824c
fixed text output and logic bug. changed scrolling code.
...
hey, sword is running really nice already. :)
svn-id: r11703
2003-12-17 07:33:00 +00:00
Robert Göffringmann
34d1751fe4
fixed resMan bug about closing of sections and started adding menu support
...
svn-id: r11695
2003-12-17 01:47:47 +00:00
Robert Göffringmann
5edaa87d68
fix sprite drawing bugs
...
svn-id: r11688
2003-12-16 19:31:12 +00:00
Robert Göffringmann
0cf52df651
copied the SwordRouter from the original BS1 sources.
...
It doesn't fit to our coding guidelines but at least it's working, so please bear with it for now. :)
svn-id: r11687
2003-12-16 18:23:15 +00:00
Jonathan Gray
83e9c59327
compilation fixes
...
svn-id: r11679
2003-12-16 09:43:08 +00:00
Paweł Kołodziejski
1cf3accb14
there is allready definitions for MIN/MAX
...
svn-id: r11676
2003-12-16 06:37:12 +00:00
Eugene Sandulenko
a8eae42510
o FreeBSD specifix fix. I am not sure it is applicable to every Unix
...
svn-id: r11675
2003-12-16 06:20:16 +00:00
Robert Göffringmann
189e08bc79
Broken Sword 1: initial import
...
svn-id: r11664
2003-12-16 02:10:15 +00:00