Commit Graph

1664 Commits

Author SHA1 Message Date
Pawel Kolodziejski
e3a475ff7b synced with scummvm rev svn 49000 2011-04-10 21:59:04 +02:00
Giulio Camuffo
786721e347 Removed left over code. 2011-04-10 18:14:53 +02:00
Giulio Camuffo
8323ad6f3a When deleting a Model::HierNode reset the _parent of the _child.
Fixes some memory corruption when deleting costumes.
2011-04-10 18:14:52 +02:00
Pawel Kolodziejski
179dfccf37 Merge branch 'master' of github.com:residual/residual 2011-04-10 15:46:50 +02:00
Pawel Kolodziejski
bccbcae43c synced rest files, missed with last sync rev 47951 2011-04-10 15:45:37 +02:00
Pawel Kolodziejski
9afae4381f update module.mk 2011-04-10 15:41:48 +02:00
Pawel Kolodziejski
41be88f8b7 synced with scummvm svn rev 47951 2011-04-10 15:33:20 +02:00
Pawel Kolodziejski
55415ee174 fix compilation using msvc 2011-04-10 11:24:03 +02:00
Pawel Kolodziejski
b7e4e91572 update msvc project files 2011-04-10 11:19:31 +02:00
Giulio Camuffo
f19188f250 Keep walking when turning.
With the much faster turn movement there is no more need to be still
while turning.
2011-04-08 19:06:42 +02:00
Giulio Camuffo
68f993c372 But delete the PathNodes anyway. 2011-04-08 18:55:16 +02:00
Giulio Camuffo
ff0c0f069b If a path could not be found go straight to the destination. 2011-04-08 18:53:27 +02:00
Giulio Camuffo
5733c90ee0 Increase by hand the turn rate used by walkForward() and update().
This makes the turn speed match with the original one. I'm not sure
this is the right way to go though, it needs testing.
2011-04-08 18:49:11 +02:00
Giulio Camuffo
b16e2e4aa3 Fix GetAngleBetweenActors.
This allows the daemon beavers puzzle to be completed.
BUG: 3276493
2011-04-08 18:01:05 +02:00
Pawel Kolodziejski
f620dd1723 remove tools from main repo 2011-04-07 21:25:47 +02:00
Einar Johan T. Sømåen
f4aab8c1cb Silence a bunch of 64-bit float warnings. 2011-04-06 06:29:40 +08:00
Giulio Camuffo
66bba94bcf Fixed some warnings. Patch by Torbjorn Andersson. 2011-04-05 21:45:20 +02:00
Giulio Camuffo
e6421b17f6 Use an ObjectPtr<T> to store the objects returned by ResourceLoader::get*. 2011-04-05 19:00:13 +02:00
Giulio Camuffo
42db5a962f Removed no longer valid comment. 2011-04-05 17:05:17 +02:00
Giulio Camuffo
2bee1ac47e Do not end forcedly a lua function that calls start_script with a bad argument.
This fix si.set, as the function si.set_up_actors() calls start_script
with si.naranja_drinking, which doesn't exist.
2011-04-05 15:36:51 +02:00
Paweł Kołodziejski
97dc30af61 added giucam to credits 2011-04-05 13:11:55 +02:00
Giulio Camuffo
3460c63580 New enum to describe the sector types, instead of the raw values. 2011-04-05 12:37:20 +02:00
Giulio Camuffo
d8c22c478c Fix ActorPutAtInterest.
Don't put the actor in a HOT sector.
2011-04-05 01:45:03 +02:00
Giulio Camuffo
2d82e9004c Fixed the closest point returned by Scene::findClosestSector. 2011-04-04 20:45:54 +02:00
Giulio Camuffo
7fcd05395c GRIM: Implemented a following boxes version of Actor::walkTo 2011-04-03 20:41:00 +02:00
Giulio Camuffo
19fcfd63b4 Fix the calculation of the angle in the x-y plane. 2011-03-31 21:01:35 +02:00
Giulio Camuffo
5f0d6adcdd Fix the movement of the head in certain animations.
The lookAt functions must take care of the totalWeight of the nodes.
2011-03-31 20:59:58 +02:00
Giulio Camuffo
ce356f9d4b Fixed the return value of TurnActorTo.
It must return true if the target yaw is different from the actual yaw of
the actor, and false otherwise.
2011-03-31 18:56:20 +02:00
Giulio Camuffo
d4454dc2ce Better calculation of the pitch of the head when looking at a point. 2011-03-31 14:48:49 +02:00
Giulio Camuffo
c39f8ac580 Implemented a stub of ActorToClean.
Also, added a workaround for the bug that caused manny to be unable
to go outside the sets where ActorToClean is called. A real fix would
be needed, though.
2011-03-30 20:15:29 +02:00
Giulio Camuffo
12830c5c2e Removed some leftover code. 2011-03-28 16:09:19 +02:00
Giulio Camuffo
5d8fa44dcf Save/restore the visibility of the meshes in the costumes. Bumped savegame version to 6. 2011-03-28 13:36:07 +02:00
Giulio Camuffo
8c66b2e7a6 Do not cache the Costume instances.
Each Actor needs to own an instance of all its costumes. This was
also causing the NULL costume issues.
2011-03-27 22:26:14 +02:00
Giulio Camuffo
18a62c16f4 Don't delete a costume when popped.
It will be deleted by Object::dereference if/when needed.
2011-03-27 18:59:52 +02:00
Giulio Camuffo
c93da6d075 SMUSH: Reset the frame to 1 and not to 0 when the frame is the last one.
This avoids flickers with looping movies, like in hb.set, because frame 0
is a fake one.
2011-03-27 17:58:58 +02:00
Giulio Camuffo
2939da9c6c Save and restore smush state 2011-03-27 17:37:28 +02:00
Giulio Camuffo
00dd8a915a Compile fix. 2011-03-26 18:02:36 +01:00
Giulio Camuffo
d150888c09 Fully working lookAt implementation. 2011-03-26 17:53:19 +01:00
Paweł Kołodziejski
e21757e56d fix amigaos4 compilation 2011-03-25 15:16:26 +01:00
Matthew Hoops
1554e1ab2f ALL: Silence a ton of warnings 2011-03-25 07:42:03 +08:00
Matthew Hoops
c375cc30ae GRIM: Add detection for Monkey4 PS2 2011-03-25 07:15:11 +08:00
Matthew Hoops
d00bbceb34 GRIM: Add support for parsing MI4 lab files 2011-03-25 07:14:56 +08:00
Matthew Hoops
4e2781c41e GRIM: Cleanup Lab file parsing
Common::String's are used directly now (instead of changing back to c-strings half the time) and a hashmap now holds the data.
2011-03-25 07:14:44 +08:00
Matthew Hoops
5f2056068f GRIM: Add detection for the MI4 demo 2011-03-25 07:14:31 +08:00
Matthew Hoops
9476f5f8cc COMMON: Add a PS2 platform type 2011-03-25 07:14:12 +08:00
Matthew Hoops
ac88c250c1 GRIM: Restructure detection a bit
Only use one gameid for full/demo versions of Grim. Using the game type in the detection fields now too.
2011-03-25 07:14:12 +08:00
Giulio Camuffo
169f75431f Delete the old TextObjects before restoring them. 2011-03-24 20:00:57 +01:00
Giulio Camuffo
26f14beb0d Save/restore the state of the keyframe animations. Bump savegame version to 4. 2011-03-24 19:52:31 +01:00
Giulio Camuffo
754de9d4ac Remove any NULL costume from _costumeStack before updating or saving. 2011-03-24 19:33:40 +01:00
Giulio Camuffo
8e015fc941 Another NULL costume crash fix in Actor::draw(). 2011-03-24 17:51:29 +01:00