diff -ur ScummVM-cvs20051001/saga/puzzle.cpp ScummVM-cvs20051001+hack/saga/puzzle.cpp
old
|
new
|
|
477 | 477 | |
478 | 478 | Common::g_timer->removeTimerProc(&hintTimerCallback); |
479 | 479 | |
480 | | switch(_hintRqState) { |
| 480 | switch (_hintRqState) { |
| 481 | case kRQSpeaking: |
| 482 | if (_vm->_actor->isSpeaking()) { |
| 483 | Common::g_timer->installTimerProc(&hintTimerCallback, 50000, this); |
| 484 | break; |
| 485 | } |
| 486 | |
| 487 | _hintRqState = _hintNextRqState; |
| 488 | Common::g_timer->installTimerProc(&hintTimerCallback, 333333, this); |
| 489 | break; |
| 490 | |
481 | 491 | case kRQNoHint: |
482 | 492 | // Pick a random hint request. |
483 | 493 | i = _hintOffer++; |
… |
… |
|
500 | 510 | _hintRqState = kRQSakkaDenies; |
501 | 511 | Common::g_timer->installTimerProc(&hintTimerCallback, 200000, this); |
502 | 512 | } else { |
503 | | _hintRqState = kRQHintRequested; |
504 | | Common::g_timer->installTimerProc(&hintTimerCallback, 400000, this); |
| 513 | _hintRqState = kRQSpeaking; |
| 514 | _hintNextRqState = kRQHintRequested; |
| 515 | Common::g_timer->installTimerProc(&hintTimerCallback, 50000, this); |
505 | 516 | } |
506 | 517 | |
507 | 518 | break; |
… |
… |
|
512 | 523 | |
513 | 524 | _vm->_interface->setRightPortrait(RID_ITE_SAKKA_APPRAISING); |
514 | 525 | |
515 | | _hintRqState = kRQHintRequestedStage2; |
516 | | Common::g_timer->installTimerProc(&hintTimerCallback, 400000, this); |
| 526 | _hintRqState = kRQSpeaking; |
| 527 | _hintNextRqState = kRQHintRequestedStage2; |
| 528 | Common::g_timer->installTimerProc(&hintTimerCallback, 50000, this); |
517 | 529 | |
518 | 530 | _vm->_interface->converseClear(); |
519 | 531 | _vm->_interface->converseAddText(optionsStr[_lang][kROAccept], 1, 0, 0 ); |
diff -ur ScummVM-cvs20051001/saga/puzzle.h ScummVM-cvs20051001+hack/saga/puzzle.h
old
|
new
|
|
40 | 40 | kRQHintRequested = 1, |
41 | 41 | kRQHintRequestedStage2 = 2, |
42 | 42 | kRQSakkaDenies = 3, |
43 | | kRQSkipEverything = 4 |
| 43 | kRQSkipEverything = 4, |
| 44 | kRQSpeaking = 5 |
44 | 45 | }; |
45 | 46 | |
46 | 47 | SagaEngine *_vm; |
… |
… |
|
51 | 52 | bool _sliding; |
52 | 53 | |
53 | 54 | kRQStates _hintRqState; |
| 55 | kRQStates _hintNextRqState; |
54 | 56 | int _hintGiver; |
55 | 57 | int _hintSpeaker; |
56 | 58 | int _hintOffer; |