[Scummvm-tracker] [ScummVM] #10765: QFG4 floppy: Assertion Error celobj32.cpp:179 at the swamp

Vhati trac at scummvm.org
Sun Dec 9 10:08:53 CET 2018


#10765: QFG4 floppy: Assertion Error celobj32.cpp:179 at the swamp
--------------------------------+-------------------------
  Reporter:  Vhati              |      Owner:  (none)
      Type:  defect             |     Status:  new
  Priority:  high               |  Component:  Engine: SCI
Resolution:                     |   Keywords:  SCI32
      Game:  Quest for Glory 4  |
--------------------------------+-------------------------

Comment (by Vhati):

 Oh. The Scaler class changed.
 \\
 \\
 Floppy, script 64935 - Scaler::doit()
 {{{
 (method (doit &tmp temp0 temp1 temp2 temp3)
         (= temp2 (client scaleX?))
         (= temp3 (client scaleY?))
         (cond
                 ((< (= temp0 (client y?)) backY) (= temp1 backSize))
                 ((> temp0 frontY) (= temp1 frontSize))
                 (else (= temp1 (+ (/ (* slopeNum temp0) slopeDen) const)))
         )
         (if
                 (or
                         (!= temp2 (= temp1 (/ (* temp1 128) 100)))
                         (!= temp3 temp1)
                 )
                 (client scaleX: temp1 scaleY: temp1)
         )
 )
 }}}

 CD, script 64935 - Scaler::doit()
 {{{
 (properties
 # added a property
         lastY -9999
 )

 # ...

 (method (doit &tmp temp0 temp1 temp2 temp3)
         (if (!= (= temp0 (client y?)) lastY)
                 (= lastY temp0)
                 (= temp2 (client scaleX?))
                 (= temp3 (client scaleY?))
                 (cond
                         ((< temp0 backY) (= temp1 backSize))
                         ((> temp0 frontY) (= temp1 frontSize))
                         (else (= temp1 (+ (/ (* slopeNum temp0) slopeDen)
 const)))
                 )
                 (if
                         (or
                                 (!= temp2 (= temp1 (/ (* temp1 128) 100)))
                                 (!= temp3 temp1)
                         )
                         (client scaleX: temp1 scaleY: temp1)
                 )
         )
 )
 }}}

--
Ticket URL: <https://bugs.scummvm.org/ticket/10765#comment:8>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list