MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Mission_Intro_DrawHelicopter

Method Mission_Intro_DrawHelicopter

Source/Amiga/Graphics_Amiga.cpp:270–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void cGraphics_Amiga::Mission_Intro_DrawHelicopter(uint16 pID) {
271 const sSpriteSheet_pstuff* di = &mSpriteSheet_PStuff[pID];
272
273 mFodder->mVideo_Draw_Columns = di->mColumns;
274 mFodder->mVideo_Draw_Rows = di->mRows;
275
276 int16 ax = di->mY & 0xFF;
277 int16 bx = (di->mX >> 3) & -2;
278
279 ax <<= 3;
280 int16 d1 = ax;
281
282 ax <<= 2;
283 ax += d1;
284
285 mFodder->mVideo_Draw_FrameDataPtr = di->GetGraphicsPtr(ax + bx);
286
287 if (pID >= 205 && pID <= 207) {
288 mFodder->mVideo_Draw_Rows++;
289 }
290
291 if (Sprite_OnScreen_Check(true)) {
292 mFodder->mVideo_Draw_Columns >>= 3;
293 mFodder->mVideo_Draw_PosY += 16;
294 Video_Draw_8_Alt();
295 }
296}
297
298void cGraphics_Amiga::Load_pStuff() {
299

Callers

nothing calls this directly

Calls 1

GetGraphicsPtrMethod · 0.80

Tested by

no test coverage detected