Commit Graph

384 Commits

Author SHA1 Message Date
Filippos Karapetis
e457fc2a26 NEVERHOOD: Add a new console command, "playsound" 2013-07-03 05:49:25 +03:00
Filippos Karapetis
0146b00148 NEVERHOOD: Fix typo in variable name 2013-07-03 05:48:55 +03:00
Filippos Karapetis
b60b3bbecd NEVERHOOD: Fix save slot selection
My initial suggestion to fix the issue was made in 163023a, which broke
the save slot selection logic. The actual save slot selection problem
was fixed in commit 2ca36ab
2013-07-03 04:41:52 +03:00
Filippos Karapetis
1b7681e9e2 NEVERHOOD: Fix cursor glitch before looking down the lowered bridge
The navigation scene type used was wrong, resulting in cursor glitches
when moving the mouse cursor at the screen edges
2013-07-01 12:46:01 +03:00
Filippos Karapetis
7804c9cc7f NEVERHOOD: Fix mouse cursor in the statue screen with the ladder button
The mouse cursor resource hash used in that scene was incorrect,
resulting in broken palette
2013-07-01 12:34:47 +03:00
Filippos Karapetis
318200cd86 NEVERHOOD: Fix sound effect heard when the castle elevator door opens
The condition where the elevator door opening sound is heard is
triggered twice. Now, we prevent it being triggered a second time.
2013-07-01 05:07:14 +03:00
Filippos Karapetis
5de6a876a9 NEVERHOOD: Fix display of the dynamites on shelves in the dynamite room 2013-07-01 04:42:13 +03:00
Filippos Karapetis
507e8ec8f3 NEVERHOOD: Slight cleanup to the navigation scene code 2013-07-01 04:25:51 +03:00
Filippos Karapetis
04dc01109f NEVERHOOD: Fix the second tape sprite in the whale room
The second tape is now correctly faced to the right
2013-07-01 04:25:50 +03:00
Torbjörn Andersson
7c18021c52 NEVERHOOD: Handle invalid save_slot more gracefully on startup
If the specificed savegame doesn't exist, start the game from the
beginning. Before, it would just hang. The error handling is still
quite primitive, though.
2013-06-28 19:32:59 +02:00
Filippos Karapetis
0658a88737 NEVERHOOD: Fix incorrect checks for the waterfall sounds
Some of the "wall broken" checks were inverse, resulting in the waterfall
sound being incorrectly heard when the wall was broken. Also,
simplified some of the "wall broken" checks
2013-06-28 18:09:35 +03:00
Filippos Karapetis
9f7033120b NEVERHOOD: Use the ScummVM dialogs for saving/loading
An option has been added to use the original ones, if needed
2013-06-28 15:37:48 +03:00
Filippos Karapetis
5a8aa67e50 NEVERHOOD: Remove superfluous description from a console command 2013-06-28 15:33:37 +03:00
Filippos Karapetis
02f11ec76f NEVERHOOD: Add missing music when entering the Hall of Records building
The "Everybody Way Oh" theme should be played in both of the first two
rooms of the Hall of Records building
2013-06-28 13:48:16 +03:00
Filippos Karapetis
7564be51d7 NEVERHOOD: Fix graphics glitch when opening the menu 2013-06-28 13:23:18 +03:00
Filippos Karapetis
63624f8bfa NEVERHOOD: Fix scene entrance when restoring in the Aqua (music) house
This looks to be a logic error in the constructor of module 2400, since
all the other modules do not create scenes with the global entrance
number when they are instantiated without an entrance (i.e. when
loading). With that logic error, all the code that handled Kleymen's
entrance to a scene after restoring was incorrectly skipped
2013-06-28 11:20:40 +03:00
Filippos Karapetis
3d373281b4 NEVERHOOD: Stop sound updates while the main menu is active 2013-06-26 12:42:10 +03:00
johndoe123
0634f51696 NEVERHOOD: Fix bug in Module 1100, scene 2 which made the "Klayman, up here" scene was unreachable. Sound bug still present, though. 2013-06-25 22:49:01 +02:00
Eugene Sandulenko
726ae06d44 NEVERHOOD: Fix warning 2013-06-22 11:19:44 -04:00
johndoe123
f449268380 NEVERHOOD: Fix Smacker errors in Scene1317 (bug #3613666) 2013-06-17 09:21:16 +02:00
Filippos Karapetis
2ca36ab53a NEVERHOOD: Fix 2 off-by-one errors in the savegame slot selection box 2013-06-15 15:07:01 +03:00
Filippos Karapetis
4c13725a55 NEVERHOOD: Hook the dump vars debug code into a command, "dumpvars"
Also, did some minor cleanup of the console commands
(alphabetical reordering)
2013-06-12 11:35:48 +03:00
Filippos Karapetis
09b235e2bd NEVERHOOD: Fix a slight glitch with the symbols cheat command
Now, the countdown to show the next symbol is properly reset when the
command is used
2013-06-12 11:35:48 +03:00
Filippos Karapetis
6bdc262c07 NEVERHOOD: Move some more cheat code to the cheat console command 2013-06-12 11:35:48 +03:00
Filippos Karapetis
323fe8c45b NEVERHOOD: Stop all sounds before restoring / restarting
This fixes the static heard when loading a saved game to a scene with
music, when the current scene also has music
2013-06-12 11:35:47 +03:00
Filippos Karapetis
9d489e82ce NEVERHOOD: Remove or silence by default some more debug output 2013-06-12 11:35:47 +03:00
Torbjörn Andersson
72e2fbc1ae NEVERHOOD: Fix GCC warnings about shadowed variables 2013-06-11 18:26:26 +02:00
Filippos Karapetis
974e7e80a8 NEVERHOOD: Remove cheat debug code, and introduce a new command, "cheat" 2013-06-11 18:57:14 +03:00
johndoe123
d4f3f6baa4 NEVERHOOD: Fix warning about shadowed variable 2013-06-11 11:39:28 +02:00
johndoe123
add321c930 NEVERHOOD: Try to fix the Smacker issues inside of SmackerPlayer only (instead the numerous classes using it)
SmackerPlayer now creates a surface in the constructor and deletes it in the destructor. There will be only this surface during the lifetime of the player, so there shouldn't be any issues any more when the player is reused for different Smacker files. This is imo nicer than to remove/add the surface.
I kept the several openSmacker since it wraps some code which is nice.
2013-06-11 11:33:05 +02:00
Filippos Karapetis
19e92a09fc NEVERHOOD: Fix crashes in scene 3009 (cannon scene), and add a FIXME 2013-06-11 11:47:50 +03:00
Filippos Karapetis
8fee784965 NEVERHOOD: Cleanup, merge some duplicate code 2013-06-11 11:47:50 +03:00
Filippos Karapetis
0d3902b345 NEVERHOOD: Change the debuglevel of the scene changing debug output
These are shown on each scene change, but should no longer be needed
to be enabled by default, since we can now use the debugger to check
and change the current scene
2013-06-10 10:33:31 +03:00
Filippos Karapetis
a01b8a5174 NEVERHOOD: Fix crash when viewing videos in the video viewer
The crash was caused by stale pointers, exactly the same as in commit
2e4f64066d
2013-06-10 03:42:44 +03:00
Filippos Karapetis
d00f5c0aa7 NEVERHOOD: Add a console command to display the current surfaces 2013-06-09 17:13:23 +03:00
Filippos Karapetis
9e0c843c9f NEVERHOOD: Remove superfluous check 2013-06-09 17:11:24 +03:00
Filippos Karapetis
f2d0f76939 NEVERHOOD: Fix a memory leak when changing modules 2013-06-09 16:08:40 +03:00
Filippos Karapetis
a14cb193a9 NEVERHOOD: Add a debug console, together with a command to change rooms 2013-06-09 16:07:45 +03:00
Torbjörn Andersson
52be12830b NEVERHOOD: Fix crash in scene 1105 (teddy bear panel)
Leaving the panel in scene 1105 only worked if the panel was open.
If the panel was closed, nothing would happen on the first click,
and on the second it would crash. If I understood this correctly,
it was because trying to leave while the panel was closed would
(incorrectly) mark it as open, and then it would crash when trying
to remove the objects behind the panel from the scene.
2013-06-02 10:54:37 +02:00
Torbjörn Andersson
251b760b99 NEVERHOOD: Removed debug (?) code that bypassed puzzle
The effect of the removed code was to bypass the potion-mixing
puzzle while shrunken. The puzzle works fine for me, so there's
no reason to keep this bypass. Also, it caused a dead code
warning, CID 1022345.
2013-06-01 16:47:56 +02:00
Torbjörn Andersson
f7099c57d1 NEVERHOOD: Made multi-line function-line macros safer
Wrapped the code in the SetUpdateHandler(), SetMessageHandler(),
SetSpriteUpdate(), SetFilterX(), SetFilterY() and NextState()
macros in "do { ... } while (0)". Otherwise you may fool yourself
because in "if (condition) macro();" the "if" will only cover the
first statement of the macro.

CID 1022340, 1022341, 1022342, 1022343
2013-05-31 19:30:36 +02:00
D G Turner
d11a1eea94 NEVERHOOD: Silence two compiler warnings about set but unused variables. 2013-05-28 02:07:02 +01:00
Filippos Karapetis
907edb50b6 NEVERHOOD: Don't show mouse cursor on game startup
This makes sure that the mouse cursor isn't visible during the intro
2013-05-28 02:43:49 +03:00
johndoe123
753d5e8922 Merge pull request #334 from salty-horse/neverhood
NEVERHOOD: Fix incorrect dark palette in Scene2206
2013-05-27 02:52:07 -07:00
Torbjörn Andersson
2e4f64066d NEVERHOOD: Fix invalid memory access in navigation scenes
When a new Smacker is opened, the old Smacker surface is deleted
and a new one is created. Therefore, it has to be removed from the
scene and the new one has to be added.
2013-05-27 06:48:23 +02:00
D G Turner
539c6314b1 NEVERHOOD: Fix uninitialized variable. 2013-05-21 23:54:18 +01:00
Ori Avtalion
f4054c5c2f NEVERHOOD: Fix incorrect dark palette in Scene2206 2013-05-19 01:05:42 +03:00
Eugene Sandulenko
6b4e62004a NEVERHOOD: Add detection for Russian version. Requires more work 2013-05-17 08:52:45 +03:00
Filippos Karapetis
c69b8fbaf5 NEVERHOOD: Update old form of module.mk
This syncs the engine's module.mk with the changes in 38a8aa516e
2013-05-15 22:21:11 +03:00
johndoe123
32c21754e2 NEVERHOOD: Fix member var initializations 2013-05-08 21:02:00 +02:00