[Scummvm-tracker] [ScummVM :: Bugs] #16431: SCI: Unknown phone numbers not being accepted by parser in Police Quest 2

ScummVM :: Bugs trac at scummvm.org
Sat Jan 3 04:34:46 UTC 2026


#16431: SCI: Unknown phone numbers not being accepted by parser in Police Quest 2
-------------------------+-----------------------------
Reporter:  andrewmilici  |       Owner:  (none)
    Type:  defect        |      Status:  new
Priority:  normal        |   Component:  Engine: SCI
 Version:                |  Resolution:
Keywords:                |        Game:  Police Quest 2
-------------------------+-----------------------------
Comment (by sluicebox <22204938+sluicebox@…>):

 In [changeset:"3bdb49262100632211d33c1c89594a71cce13190" 3bdb4926]:
 {{{#!CommitTicketReference repository=""
 revision="3bdb49262100632211d33c1c89594a71cce13190"
 SCI: Fix parser rejecting unknown numbers

 The parser is supposed to parse an unknown number as a special word,
 but we have been using the wrong class code. This caused the parser
 to reject such input in kParse, preventing scripts from matching on
 unknown numbers with kSaid. It's unclear if FreeSCI had this bug,
 or if we changed the code structure later but forgot to add bit
 shifting to this line.

 While investigating, I found that early SCI0 did not parse unknown
 numbers, so I added a version check.

 Fixes:
 - PQ2 phone when dialing a wrong number
 - LSL2 message when entering digits (later versions)
 - LSL3 message when entering digits
 - LSL3 locker room when entering digits

 Thanks to @andrewmilici for reporting this

 Fixes bug #16431
 }}}
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/16431#comment:6>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list