| 9224 | } |
| 9225 | |
| 9226 | int16 cFodder::Sprite_Next_WalkTarget_Set(sSprite* pSprite) { |
| 9227 | |
| 9228 | int16 Data0 = mSquad_WalkTargets[pSprite->field_32][pSprite->field_40].mX; |
| 9229 | int16 Data4 = mSquad_WalkTargets[pSprite->field_32][pSprite->field_40].mY; |
| 9230 | |
| 9231 | // Do we have a valid walk target? |
| 9232 | if (Data0 >= 0) { |
| 9233 | pSprite->field_26 = Data0; |
| 9234 | pSprite->field_28 = Data4; |
| 9235 | pSprite->field_40++; |
| 9236 | pSprite->field_42 = -1; |
| 9237 | return 0; |
| 9238 | } |
| 9239 | |
| 9240 | //loc_2D9C0 |
| 9241 | if (!pSprite->field_42) |
| 9242 | return -1; |
| 9243 | |
| 9244 | pSprite->field_42 = 0; |
| 9245 | |
| 9246 | return Squad_Join(pSprite); |
| 9247 | } |
| 9248 | |
| 9249 | int16 cFodder::Squad_Join(sSprite* pSprite) { |
| 9250 | int16 Data14 = pSprite->field_32; |
nothing calls this directly
no outgoing calls
no test coverage detected