Commit Graph

55133 Commits

Author SHA1 Message Date
Strangerke
ae80dc481b HOPKINS: More refactoring of playSequence in order to handle shouldQuit() 2013-02-03 23:07:51 +01:00
Strangerke
db60dcb432 HOPKINS: Replace a global variable by a parameter in playSequence() 2013-02-03 22:51:34 +01:00
Strangerke
cec23051b3 HOPKINS: Fix the Esc key behavior in playSequence, remove several GOTOs 2013-02-03 22:28:38 +01:00
Torbjörn Andersson
49afc87b88 HOPKINS: Attempt to fix crash when skipping movie
Before starting an "Swav" sound, check that its sound handle isn't
already used. If it is, stop it. When skipping a movie, it still
(incorrectly?) goes through the motions of playing the remaining
frames, including starting any movie sounds on the way.

This would cause us to lose the handle to the sound that was
currently playing in the "Swav" slot, and I *think* that's what
ended up confusing things. I'm still not entirely sure exactly
what was happening.
2013-02-03 18:33:20 +01:00
Strangerke
bce7139c8c HOPKINS: Refactor selection of action animations 2013-02-03 15:42:49 +01:00
Strangerke
5846c71469 HOPKINS: Remove debug hack left in previous commit, some tiny refactoring 2013-02-03 14:30:03 +01:00
Strangerke
5be9c19ac7 HOPKINS: flatten a leftover serie of IFs 2013-02-03 14:20:39 +01:00
Strangerke
6a477576b9 HOPKINS: Some more refactoring in BTOCEAN code 2013-02-03 14:14:08 +01:00
Strangerke
c4657c71ab HOPKINS: Get rid of 3 more labels 2013-02-03 13:50:29 +01:00
Strangerke
397c0cc238 HOPKINS: Start refactoring BTOCEAN. Get rid of two labels and their associated GOTOs 2013-02-03 13:38:51 +01:00
Strangerke
0f69da1a4f HOPKINS: Skip several useless reads in playAnim2, some more refactoring 2013-02-03 11:22:20 +01:00
Strangerke
29ce3e23f1 HOPKINS: More refactoring in playAnim2. Get rid of the remaining GOTOs 2013-02-03 11:08:37 +01:00
Strangerke
c56efbb203 HOPKINS: More refactoring in playAnim2: Get rid of another label and associated GOTO 2013-02-03 10:27:53 +01:00
Strangerke
3653f2b214 HOPKINS: Remove dead code in playAnim2, get rid of one more GOTO 2013-02-03 10:19:42 +01:00
Strangerke
f90da4dd7e HOPKINS: Get rid of another couple of GOTOs in playAnim2 2013-02-03 10:04:03 +01:00
Strangerke
aa4f39e666 HOPKINS: Remove two GOTOs in playAnim() 2013-02-03 07:59:48 +01:00
Strangerke
6797698af8 HOPKINS: Some more refactoring 2013-02-03 01:25:37 +01:00
Torbjörn Andersson
b889bb69ef HOPKINS: Fix Valgrind warnings in INILINK()
We can't read all the way to the end of the buffer, because the
READ_BE_UINT24() function will, naturally, read a few bytes ahead.
2013-02-02 23:09:29 +01:00
Torbjörn Andersson
8f300bdc30 HOPKINS: Fix GCC warnings 2013-02-02 20:26:42 +01:00
Strangerke
690405961f HOPKINS: Some refactoring in GraphicsManager 2013-02-02 19:20:58 +01:00
Torbjörn Andersson
ea4639c65f HOPKINS: Fix Sprite_Vesa() height clipping
This fixes some Valgrind warnings on the city overhead map, and also
seem to get rid of the bird "droppings" previously left behind in the
area beneath the picture. There are things I don't understand about
this function, but I hope I didn't break anything.
2013-02-02 12:41:44 +01:00
Strangerke
9772426c58 HOPKINS: Fix signness issue, get rid of another GOTO 2013-02-02 12:26:21 +01:00
Strangerke
4b0e226340 HOPKINS: Get rid of a goto in the display code. Remove useless casts (with comments about that). Some renaming. 2013-02-02 12:15:41 +01:00
Strangerke
f10d3c8dcc HOPKINS: Remove 2 more labels in EventsManager 2013-02-01 07:55:49 +01:00
Strangerke
7480957ab0 HOPKINS: Get rid of a couple of LABELS in EventsManager, some renaming 2013-02-01 07:36:13 +01:00
Strangerke
3cb6af38df HOPKINS: Some refactoring in DialogsManager 2013-02-01 00:33:01 +01:00
Strangerke
334968c5ff HOPKINS: More refactoring in AnimationManager and ComputerManager 2013-01-31 23:52:01 +01:00
Strangerke
7d743c9e77 HOPKINS: More refactoring in searchAnim 2013-01-31 08:24:34 +01:00
Strangerke
ab6826e24d HOPKINS: Start refactoring searchAnim 2013-01-31 08:18:01 +01:00
Strangerke
9dd09f6c6e HOPKINS: Remove some more casts to unsigned int 2013-01-31 07:48:44 +01:00
Strangerke
15de07ff74 HOPKINS: Introduce MKTAG24. Make use of MKTAG16 and MKTAG24 2013-01-30 08:31:32 +01:00
Strangerke
e68e3c91eb HOPKINS: USe MKTAG where possible 2013-01-30 00:17:08 +01:00
Strangerke
3b63e28a39 HOPKINS: Refactor searchCharacterAnim() 2013-01-29 23:59:25 +01:00
Strangerke
9ceb6c18cd HOPKINS: Fix regression introduced in 4ce218ef00 2013-01-29 21:16:46 +01:00
Strangerke
4fed1f580e HOPKINS: More renaming in the Global class 2013-01-29 08:35:14 +01:00
Strangerke
fbc19ab3b4 HOPKINS: Various renaming 2013-01-29 08:12:43 +01:00
Strangerke
11a0f00c25 HOPKINS: Add hack to improve the display of text on the computers, for the BeOS and OS/2 versions 2013-01-28 22:36:11 +01:00
Strangerke
c0ad052c72 HOPKINS: Add a fallback for the sound played in the option menu, for the BeOS and OS/2 versions 2013-01-28 07:45:46 +01:00
Strangerke
623360cf15 HOPKINS: Add fallback alternative for the computer font file, for the BeOS and OS/2 versions 2013-01-28 07:15:06 +01:00
Strangerke
a896975962 HOPKINS: Renaming of another variable in LinesManager 2013-01-27 23:49:20 +01:00
Strangerke
0b78d86335 HOPKINS: set private a couple of members of AnimationManager 2013-01-27 23:48:50 +01:00
Strangerke
e923cdef5b HOPKINS: Some refactoring in LinesManager 2013-01-27 23:30:40 +01:00
Strangerke
e77198081d HOPKINS: Move some more LinesManager variables to private, add some functions to access them 2013-01-27 22:53:20 +01:00
Strangerke
0f13ff5cc1 HOPKINS: More private members in LinesManager 2013-01-27 22:28:10 +01:00
Strangerke
b9f9b2c75b HOPKINS: Move some more members to LinesManager 2013-01-27 20:20:36 +01:00
Torbjörn Andersson
a50c05f7d0 HOPKINS: Work around broken cadavre.mod in OS/2 and BeOS versions
A large part of cadavre.mod is broken. No new notes play, and only
the old background sounds remain. It's possible, perhaps even
probable, that the original MOD player didn't have this problem,
but all standalone players I've tried do, so I'm assuming it's the
file that's broken. We work around it by changing the length of
the song after it's been loaded to only include the good parts.
2013-01-27 18:18:04 +01:00
Strangerke
9d1d5a09c4 HOPKINS: Move two more variables to _linesManager, set private some variables 2013-01-27 15:22:57 +01:00
Strangerke
8de1b1b996 HOPKINS: Move some more variables from Globals to LinesManager 2013-01-27 14:58:47 +01:00
Strangerke
68f5da1375 HOPKINS: Move _maxLineIdx to LinesManager, remove a useless variable 2013-01-27 14:32:05 +01:00
Strangerke
50aa4cbc73 HOPKINS: Move some structures and functions to LinesManager 2013-01-27 12:53:00 +01:00