Skip to content

Commit

Permalink
TSAGE: R2R - Scene 3100 (space port): Fix cursor used in signal(), re…
Browse files Browse the repository at this point in the history
…name an object
  • Loading branch information
Strangerke committed Dec 22, 2011
1 parent cdd9ab3 commit 086b0e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
25 changes: 12 additions & 13 deletions engines/tsage/ringworld2/ringworld2_scenes3.cpp
Expand Up @@ -43,7 +43,7 @@ void Scene3100::synchronize(Serializer &s) {
s.syncAsSint16LE(_field412);
}

bool Scene3100::Actor6::startAction(CursorType action, Event &event) {
bool Scene3100::Guard::startAction(CursorType action, Event &event) {
if (action != CURSOR_TALK)
return SceneActor::startAction(action, event);

Expand Down Expand Up @@ -98,11 +98,11 @@ void Scene3100::postInit(SceneObjectList *OwnerList) {
_sound1.fadeSound(130);
setAction(&_sequenceManager, this, 3102, &_actor1, &R2_GLOBALS._player, &_actor3, &_actor4, &_actor5, NULL);
} else {
_actor6.postInit();
_actor6.setup(3110, 5, 1);
_actor6.changeZoom(50);
_actor6.setPosition(Common::Point(10, 149));
_actor6.setDetails(3100, 6, -1, -1, 2, NULL);
_guard.postInit();
_guard.setup(3110, 5, 1);
_guard.changeZoom(50);
_guard.setPosition(Common::Point(10, 149));
_guard.setDetails(3100, 6, -1, -1, 2, NULL);

_actor4.postInit();
_actor4.setup(3103, 1, 1);
Expand All @@ -126,11 +126,11 @@ void Scene3100::postInit(SceneObjectList *OwnerList) {

setAction(&_sequenceManager, this, 3101, &R2_GLOBALS._player, &_actor1, &_actor2, &_actor3, NULL);
} else {
_actor6.postInit();
_actor6.setup(3110, 5, 1);
_actor6.changeZoom(50);
_actor6.setPosition(Common::Point(10, 149));
_actor6.setDetails(3100, 6, -1, -1, 2, NULL);
_guard.postInit();
_guard.setup(3110, 5, 1);
_guard.changeZoom(50);
_guard.setPosition(Common::Point(10, 149));
_guard.setDetails(3100, 6, -1, -1, 2, NULL);

_actor4.postInit();
_actor4.setup(3103, 1, 1);
Expand Down Expand Up @@ -167,8 +167,7 @@ void Scene3100::remove() {
void Scene3100::signal() {
switch (_sceneMode) {
case 10:
warning("TODO: Unknown cursor used (6/-6)");
R2_GLOBALS._player.enableControl();
R2_GLOBALS._player.enableControl(CURSOR_TALK);
break;
case 3100:
R2_GLOBALS._player._moveDiff = Common::Point(3, 2);
Expand Down
4 changes: 2 additions & 2 deletions engines/tsage/ringworld2/ringworld2_scenes3.h
Expand Up @@ -41,7 +41,7 @@ using namespace TsAGE;


class Scene3100 : public SceneExt {
class Actor6 : public SceneActor {
class Guard : public SceneActor {
virtual bool startAction(CursorType action, Event &event);
};
public:
Expand All @@ -55,7 +55,7 @@ class Scene3100 : public SceneExt {
SceneActor _actor3;
SceneActor _actor4;
SceneActor _actor5;
Actor6 _actor6;
Guard _guard;
ASoundExt _sound1;
SequenceManager _sequenceManager;

Expand Down

0 comments on commit 086b0e5

Please sign in to comment.