| 593 | //--------------------------------------------------------------------------- |
| 594 | |
| 595 | void DrawOverheadMap(const DVector2& plxy, const DAngle pl_angle, double const interpfrac) |
| 596 | { |
| 597 | if (am_followplayer || follow.X == INT_MAX) |
| 598 | { |
| 599 | follow = plxy; |
| 600 | } |
| 601 | |
| 602 | follow_a = am_rotate ? pl_angle : DAngle270; |
| 603 | const DVector2 xydim = DVector2(screen->GetWidth(), screen->GetHeight()) * 0.5; |
| 604 | const DVector2 avect = follow_a.ToVector(); |
| 605 | |
| 606 | AutomapControl(avect); |
| 607 | |
| 608 | if (automapMode == am_full) |
| 609 | { |
| 610 | twod->ClearScreen(); |
| 611 | renderDrawMapView(follow, avect, xydim); |
| 612 | } |
| 613 | |
| 614 | drawredlines(follow, avect, xydim); |
| 615 | drawwhitelines(follow, avect, xydim); |
| 616 | if (!gi->DrawAutomapPlayer(plxy, follow, follow_a, xydim, gZoom, interpfrac)) |
| 617 | DrawPlayerArrow(follow, follow_a, gZoom, pl_angle); |
| 618 | |
| 619 | } |
| 620 | |
| 621 | //--------------------------------------------------------------------------- |
| 622 | // |
no test coverage detected