MCPcopy Create free account
hub / github.com/diasurgical/devilution / doom_draw

Function doom_draw

Source/doom.cpp:78–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void doom_draw()
79{
80 if (!doomflag) {
81 return;
82 }
83
84 if (doom_quest_time != 31) {
85 doom_stars_drawn++;
86 if (doom_stars_drawn >= 5) {
87 doom_stars_drawn = 0;
88 doom_quest_time++;
89 if (doom_quest_time > doom_get_frame_from_time()) {
90 doom_quest_time = 0;
91 }
92 doom_load_graphics();
93 }
94 }
95
96 CelDraw(SCREEN_X, PANEL_Y - 1, pDoomCel, 1, SCREEN_WIDTH);
97}
98
99DEVILUTION_END_NAMESPACE

Callers 1

DrawViewFunction · 0.85

Calls 3

doom_get_frame_from_timeFunction · 0.85
doom_load_graphicsFunction · 0.85
CelDrawFunction · 0.85

Tested by

no test coverage detected