Changes between Version 1 and Version 2 of Ticket #10615, comment 17
- Timestamp:
- Dec 27, 2018, 9:47:08 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10615, comment 17
v1 v2 4 4 * Set a temporary speed for unfurling the cloth. 5 5 * Restore the original slider speed. 6 * handsOn() 6 7 * State 4 8 * handsOff() 7 9 * Decide whether to cross (states 5-7) or abort (8). 8 10 * State 5-7 … … 15 17 * Set a temporary speed for folding up the cloth 16 18 * Restore the original slider speed, and normalize hero. 19 * handsOn() 17 20 \\ 18 21 \\ … … 42 45 ) 43 46 47 (4 48 4 49 (g1_Glory handsOff:) 50 # ... 51 # Cross if Levitate set register=1, or abort. 52 (if register (= cycles 1) else (self changeState: 8)) 53 ) 54 55 (5 56 5 57 # ... 58 (if register # Always 1. 59 # Move left. Always. 60 (g0_hero setMotion: MoveTo 143 83 self) 61 else 62 # Move right. Never happens. 63 # This is derelict code. 64 (g0_hero setMotion: MoveTo 218 48 self) 65 ) 66 ) 67 44 68 # ... 45 69 46 70 (9 47 71 9 48 # Cache original slider speed again!? 72 # Cache original slider speed again. 73 # Player could've adjusted the speed between 74 # state 3 (cloth deployed) and state 4 (Levitate). 75 # 49 76 (= local2 (g0_hero cycleSpeed?)) 50 77 … … 68 95 sLevitateOverPit already caches in state 1 and restores in state 10. That's good. 69 96 70 In the middle, a patch clobbers state 3's restoration... setting a fixed speed that lasts throughout the crossing.97 In the middle, a patch clobbers state 5's derelict code... setting a fixed speed that lasts throughout the crossing. 71 98 72 99 At state 9, we don't want the fixed speed cached, so that line is erased. This has to be a second patch because the CD and floppy editions have different byte counts.