Commit Graph
20 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 9dab832214 NEVERHOOD: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
D G Turner 2050ae13b6 NEVERHOOD: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-05 22:37:54 +00:00
Torbjörn Andersson 42bf369d68 NEVERHOOD: Pass NPoint as position instead of X in two more cases
According to johndoe it's correct to pass the entire coordinate,
rather than just X, to the car in these cases as well. I can't
tell any difference at all in the behavior, but I guess it doesn't
hurt either. After all, we can easily zero the Y coordinate, if we
ever want to.
2015-10-18 11:37:40 +02:00
Torbjörn Andersson 0f3e7531c1 NEVERHOOD: Possible fix for bad car behaviour
This is something I found when trying the savegame from bug #6932,
but I still don't know if it actually is that bug.

From what I understand, there are two different cases in the
moveCarToPoint() method: One where you click on a different
section on a track than you're on, and one where you click on the
same section on the track that you're on.

In the latter case, it sends message 0x2004 to the car, which is
then handled by AsCommonCar::handleMessage(). That one will assume
that the parameter is a point, but this can also be encoded as an
integer with 16 bits for the X coordinate and 16 bits for the Y
coordinate. See MessageParam::asPoint().

If we only pass an X coordinate to the message, the Y coordinate
is assumed to be 0, and we do this in a couple of places. I do not
know the exact implications of that, but in the two cases I've
changed here, it meant that clicking on the track below the car
would still make it go up, because it thought you were travelling
towards the top of the screen.

So I think this is the appropriate fix, but even if it is, I do
not know if it's enough or if it should be changed in other places
as well.
2015-10-11 08:00:23 +02:00
Torbjörn Andersson 639a2dfd2e NEVERHOOD: Fix radio part of bug #6513 ("Some nasty bugs")
This clears the radio music variable when leaving the room. I've
discussed with johndoe123 and he says this is what the original
does. (You could also get the same effect by clearing it when
entering the room.)
2014-06-05 19:51:28 +02:00
Strangerke 1a18d1a50e NEVERHOOD: Fix some uninitialized variables 2014-03-19 19:45:51 +01:00
Johannes Schickel 6563171e7b NEVERHOOD: Make GPL headers consisten in themselves. 2014-02-18 02:39:36 +01:00
Filippos Karapetis da5cdd1c03 NEVERHOOD: Move car to the correct position when entering a new scene 2013-12-25 19:13:04 +02:00
Filippos Karapetis 43c226436c NEVERHOOD: Change more message values to enums 2013-12-25 19:12:00 +02:00
Filippos Karapetis 962e2fd550 NEVERHOOD: Change more message values to enums 2013-12-25 17:10:42 +02:00
Filippos Karapetis 4cfb9ee82b NEVERHOOD: Clean up some includes 2013-10-05 22:06:47 +03:00
Filippos Karapetis b408b94bf1 NEVERHOOD: Split sprites from their scenes in module 1600 2013-10-05 14:52:48 +03:00
Filippos Karapetis 9715318932 NEVERHOOD: Split sprites from their scenes in modules 2100 and 2200
This also reduces inter-header dependencies
2013-10-05 14:21:53 +03:00
Filippos Karapetis c977561b46 NEVERHOOD: Split some more sprites from their respective scenes
This splits modules 2700, 2900 and 3000
2013-10-01 00:55:46 +03:00
Max Horn a993b8dc30 NEVERHOOD: Remove NRect constructor
Otherwise, every global variable of type NRect requires a constructor to be
run, which can cause portability issue.
2013-08-05 11:49:03 +02:00
Sven Hesse 989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Filippos Karapetis 0146b00148 NEVERHOOD: Fix typo in variable name 2013-07-03 05:48:55 +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
johndoe123 78e0d6a3f1 NEVERHOOD: Move module files to own subdirectory 2013-05-08 20:49:19 +02:00