![]()  | 
Routines | 
| Prev: 28845 | Up: Map | Next: 28878 | 
| 
 
Used by the routines at ActorEraseMovedSprite and ActorEraseDestroyed.
 
 | 
||||
| ActorFindPosDir | 28850 | CALL GetDefaultSprite | Call GetDefaultSprite. | |
| 28853 | LD HL,(24096) | HL=Actor_Position_X. | ||
| 28856 | LD A,L | A=L. | ||
| 28857 | NEG | |||
| 28859 | AND %00000111 | Keep only bits 0-2. | ||
| 28861 | LD (24128),A | Write A to 24128. | ||
| 28864 | CALL 28845 | Call 28845. | ||
| 28867 | CALL ScreenAddress | Call ScreenAddress. | ||
| 28870 | LD A,(DE) | |||
| 28871 | CP C | |||
| 28872 | JR C,ActorFindPosDir_0 | |||
| 28874 | LD A,C | A=C. | ||
| ActorFindPosDir_0 | 28875 | LD (24101),A | Write A to CurrentSpriteHeight. | |
| 
 
Continue on to NextSprite.
 
 | 
||||
| Prev: 28845 | Up: Map | Next: 28878 |