Commit Graph
450 Commits
Author SHA1 Message Date
Paul Gilbert 0094b4225c TITANIC: More properly handle parser clearing after sentence processing
The original actually freed the parser entirely from within findFrames,
and then recreated it each time a sentence is parsed. Since this is
nasty, and in ScummVM _parser isn't dynamically created, I settled on
adding a clear command to completely clear the parser instead.
2018-07-14 16:25:14 -07:00
Paul Gilbert d39d4b9d4b TITANIC: Remove any unfreed parser nodes at the end of sentence parsing
This fixes cases like bug #10621, which are somehow resulting from not
all parser nodes being properly freed after parsing the first sentence
finishes
2018-07-14 13:51:06 -07:00
Adrian Frühwirth cee4d6b853 JANITORIAL: Fix trailing whitespace 2018-05-24 15:30:55 +02:00
Adrian Frühwirth bc949250de JANITORIAL: Convert line endings from CRLF/mixed to LF 2018-05-24 15:30:55 +02:00
Adrian Frühwirth c7f3416daa JANITORIAL: Remove trailing whitespace 2018-05-20 23:40:20 +02:00
Paul Gilbert db1c506ee5 TITANIC: Hopefully fix Release mode crash when selecting floors manually 2018-05-02 21:54:24 -04:00
Paul Gilbert 9ef97cd265 TITANIC: Fix DoorbotScript _stateIndex cycling check
Thanks to eriktorbjorn for pointing out the Coverity warning
2018-03-17 14:06:26 -04:00
Paul Gilbert aca61ca208 TITANIC: Removed unused arrays and fields 2018-03-12 18:56:25 -04:00
Paul Gilbert 5a17a96c38 TITANIC: Fix switch fall throughs 2017-11-13 07:37:07 -05:00
Paul Gilbert b2ebaf008e TITANIC: DE: Fix showing accented characters in Chat tab 2017-10-12 21:38:20 -04:00
Paul Gilbert 60eca29f3d TITANIC: DE: Fix saying 'ja' to Deskbot during checkin 2017-10-12 20:05:24 -04:00
Paul Gilbert 0fd4e80cb2 TITANIC: Fix buffer overflow in parser searchAndReplace 2017-10-10 19:50:35 -04:00
Paul Gilbert 1f5908c9bd TITANIC: Fix talking to the Maitre D 2017-10-10 18:02:10 -04:00
Paul Gilbert 721041bc30 TITANIC: Fix Coverity warnings 2017-10-09 07:57:55 -04:00
Paul Gilbert 6dac2f4b95 TITANIC: DE: Syntax fixes 2017-10-08 11:12:53 -04:00
Paul Gilbert 76e5a0246c TITANIC: DE: Fix Barbot response handling 2017-10-07 16:38:12 -04:00
Paul Gilbert 6723bed162 TITANIC: DE: Fixes to vocabs, strings, and font in titanic.dat 2017-10-06 21:07:00 -04:00
Paul Gilbert 9b51c1dbbd TITANIC: DE: Fix recognising words with common suffixes 2017-10-06 20:37:28 -04:00
Paul Gilbert 223867b2f5 TITANIC: DE: Fixes for article handling 2017-10-06 07:16:36 -04:00
Paul Gilbert 9ef2ca7f84 TITANIC: DE: Correctly play back entire 1st class upgrade speech 2017-10-02 20:30:39 -04:00
Paul Gilbert da6b280922 TITANIC: DE: Fix upgrading to 1st class 2017-10-02 20:20:32 -04:00
Paul Gilbert b98d44ca0b TITANIC: DE: Changes for DoorbotScript::chooseResponse 2017-09-27 21:24:42 -04:00
Paul Gilbert a65a0c4768 TITANIC: DE: Fix switch in DeskbotScript::doSentenceEntry 2017-09-26 21:08:06 -04:00
Paul Gilbert 4927369987 TITANIC: Fix loop limit in TTsentenceConcept destructor 2017-09-25 21:25:26 -04:00
Paul Gilbert c188fd9130 TITANIC: Add missing destructor for TTsentenceConcept 2017-09-25 20:45:27 -04:00
Paul Gilbert 65811506f8 TITANIC: Don't launch further bot speeches when exiting game
Previously, notifying bots to the end of a speech fragment was
done in ~TTtalker. Which caused problems when in progress talkers
were freed when exiting the game with a speech was in progress,
since it would try to start the next following speech fragment.
2017-09-24 14:09:24 -04:00
Paul Gilbert d9eebaf787 TITANIC: Fix leak of vocab synonyms on exit 2017-09-24 12:26:43 -04:00
Paul Gilbert b724ea6530 TITANIC: Fix compiler warnings in DeskbotScript 2017-09-24 10:34:13 -04:00
Paul Gilbert d74e94950b TITANIC: DE: Merged German NPC script subclasses back in
There ended up not being enough custom German code in the scripts
to warrant having sub-classes that reimplemented entire methods
2017-09-23 21:18:25 -04:00
Paul Gilbert e5cad39a58 TITANIC: DE: Updates for SuccUBusScript 2017-09-23 21:02:44 -04:00
Paul Gilbert e9034ddffe TITANIC: DE: Added changes to MaitreDScript 2017-09-23 20:39:12 -04:00
Paul Gilbert 6f150abf15 TITANIC: DE: Added changes for LiftbotScript 2017-09-23 19:30:28 -04:00
Paul Gilbert af71ec809b TITANIC: DE: Adding remaining DoorbotScript changes 2017-09-23 17:19:06 -04:00
Paul Gilbert 048bec6808 TITANIC: DE: Adding changes to DoorbotScript 2017-09-23 16:25:44 -04:00
Paul Gilbert 9e2d78446e TITANIC: DE: More BellbotScript changes 2017-09-22 22:31:42 -04:00
Paul Gilbert 5c6de7d2f2 TITANIC: DE: Adding new BellbotScript logic 2017-09-22 20:13:31 -04:00
Paul Gilbert cd6927d39c TITANIC: DE: Added translations for BarbotScript::process 2017-09-22 07:41:55 -04:00
Paul Gilbert 0a44b54ee2 TITANIC: Fix memory leaks on shutdown 2017-09-19 20:00:32 -04:00
Paul Gilbert af99606db8 TITANIC: Fix identified redundant tests & assignments 2017-09-18 22:25:54 -04:00
Paul Gilbert 3d4bc3c59b TITANIC: Add missing return check in BellbotScript::process 2017-09-18 22:22:16 -04:00
Paul Gilbert 4cfbe02919 TTITANIC: Guard against TTstring items being self-assigned 2017-09-18 21:29:29 -04:00
Paul Gilbert 5af8ed228d TITANIC: Add VocabMode enum, fix German vocab loading 2017-09-18 18:16:03 -04:00
Paul Gilbert e6a1c5a9a0 TITANIC: Added German DeskbotScript process additions 2017-09-17 22:15:01 -04:00
Paul Gilbert d48caed204 TITANIC: Add Deskbot German specific logic 2017-09-17 20:36:07 -04:00
Paul Gilbert b033d1bbd9 TITANIC: Added German specific TTnpcScript doSentenceEntry code
I'm not entirely happy I had to put this in the base TTnpcScript
rather than somewhere in the new german/ subfolder, but I couldn't
think of any clean way to do it except nasty designs like diamond
multiple inheritance
2017-09-17 18:42:00 -04:00
Paul Gilbert 0a8167be75 TITANIC: Fix case sensitivity in header includes 2017-09-17 16:57:18 -04:00
Paul Gilbert 42b24e328a TITANIC: Add skeleton derived bot script classes for German version 2017-09-17 16:39:51 -04:00
Paul Gilbert 481e18ee1d TITANIC: Create a separate g_language global in it's own file
I was becoming concerned with more and more files having to add the
full engine definition and sub-classes thereof via titanic.h,
just so the TRANSLATE macro could call getLanguage. This way, files
just need to include the lightweight translation.h file instead
2017-09-17 16:24:26 -04:00
Paul Gilbert 6cac39b646 TITANIC: Add differing response Id range checks for German 2017-09-16 22:03:36 -04:00
Paul Gilbert 258015571b TITANIC: Add 'skip' response for Deskbot to skip entire checkin 2017-09-06 19:37:06 -04:00