Skip to content

Commit

Permalink
TONY: Fixed display of static animations, and some variable renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jun 10, 2012
1 parent e37319a commit f64700b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
14 changes: 7 additions & 7 deletions engines/tony/custom.cpp
Expand Up @@ -985,26 +985,26 @@ DECLARE_CUSTOM_FUNCTION(TonyConCarteEnd)(CORO_PARAM, uint32, uint32, uint32, uin
CORO_END_CODE;
}

DECLARE_CUSTOM_FUNCTION(TonyConTaccuinoStart)(CORO_PARAM, uint32, uint32, uint32, uint32) {
DECLARE_CUSTOM_FUNCTION(TonyWithNotebookStart)(CORO_PARAM, uint32, uint32, uint32, uint32) {
CORO_BEGIN_CONTEXT;
CORO_END_CONTEXT(_ctx);

CORO_BEGIN_CODE(_ctx);

GLOBALS.nTonyNextTalkType = GLOBALS.Tony->TALK_CONTACCUINOSTATIC;
GLOBALS.nTonyNextTalkType = GLOBALS.Tony->TALK_WITH_NOTEBOOK;
GLOBALS.bStaticTalk = true;
CORO_INVOKE_1(GLOBALS.Tony->startStatic, GLOBALS.Tony->TALK_CONTACCUINOSTATIC);
CORO_INVOKE_1(GLOBALS.Tony->startStatic, GLOBALS.Tony->TALK_WITH_NOTEBOOK);

CORO_END_CODE;
}

DECLARE_CUSTOM_FUNCTION(TonyConTaccuinoEnd)(CORO_PARAM, uint32, uint32, uint32, uint32) {
DECLARE_CUSTOM_FUNCTION(TonyWithNotebookEnd)(CORO_PARAM, uint32, uint32, uint32, uint32) {
CORO_BEGIN_CONTEXT;
CORO_END_CONTEXT(_ctx);

CORO_BEGIN_CODE(_ctx);

CORO_INVOKE_1(GLOBALS.Tony->endStatic, GLOBALS.Tony->TALK_CONTACCUINOSTATIC);
CORO_INVOKE_1(GLOBALS.Tony->endStatic, GLOBALS.Tony->TALK_WITH_NOTEBOOK);
GLOBALS.bStaticTalk = false;
GLOBALS.nTonyNextTalkType = GLOBALS.Tony->TALK_NORMAL;

Expand Down Expand Up @@ -2459,8 +2459,8 @@ ASSIGN(98, TonyConRicettaStart)
ASSIGN(99, TonyConRicettaEnd)
ASSIGN(100, TonyConCarteStart)
ASSIGN(101, TonyConCarteEnd)
ASSIGN(102, TonyConTaccuinoStart)
ASSIGN(103, TonyConTaccuinoEnd)
ASSIGN(102, TonyWithNotebookStart)
ASSIGN(103, TonyWithNotebookEnd)
ASSIGN(104, TonyConMegafonoStart)
ASSIGN(105, TonyConMegafonoEnd)
ASSIGN(106, TonyConBarbaStart)
Expand Down
9 changes: 6 additions & 3 deletions engines/tony/tonychar.cpp
Expand Up @@ -950,7 +950,7 @@ bool RMTony::startTalkCalculate(TALKTYPE nTalkType, int &headStartPat, int &body
case TALK_CONRICETTASTATIC:
case TALK_CONCONIGLIOSTATIC:
case TALK_CONCARTESTATIC:
case TALK_CONTACCUINOSTATIC:
case TALK_WITH_NOTEBOOK:
case TALK_CONMEGAFONOSTATIC:
switch (_TalkDirection) {
case LEFT:
Expand Down Expand Up @@ -1632,7 +1632,7 @@ void RMTony::startStaticCalculate(TALKTYPE nTalk, int &headPat, int &headLoopPat
}
break;

case TALK_CONTACCUINOSTATIC:
case TALK_WITH_NOTEBOOK:
switch (_TalkDirection) {
case UP:
case LEFT:
Expand Down Expand Up @@ -1736,6 +1736,9 @@ void RMTony::startStatic(CORO_PARAM, TALKTYPE nTalk) {
_ctx->headPat = _ctx->headLoopPat = 0;
_ctx->bodyStartPat = _ctx->bodyLoopPat = 0;

startStaticCalculate(nTalk, _ctx->headPat, _ctx->headLoopPat,
_ctx->bodyStartPat, _ctx->bodyLoopPat);

// e vai con i pattern
_bIsStaticTalk = true;

Expand Down Expand Up @@ -1827,7 +1830,7 @@ void RMTony::endStaticCalculate(TALKTYPE nTalk, int &bodyEndPat, int &finalPat,
}
break;

case TALK_CONTACCUINOSTATIC:
case TALK_WITH_NOTEBOOK:
switch (_TalkDirection) {
case UP:
case LEFT:
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/tonychar.h
Expand Up @@ -61,7 +61,7 @@ class RMTony : public RMCharacter {
TALK_CONCONIGLIOSTATIC,
TALK_CONRICETTASTATIC,
TALK_CONCARTESTATIC,
TALK_CONTACCUINOSTATIC,
TALK_WITH_NOTEBOOK,
TALK_CONMEGAFONOSTATIC,
TALK_CONBARBASTATIC,
TALK_RIDE2,
Expand Down

0 comments on commit f64700b

Please sign in to comment.