MCPcopy Create free account
hub / github.com/ZDoom/Raze / DoProgress

Method DoProgress

source/common/startscreen/startscreen_strife.cpp:142–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140//==========================================================================
141
142bool FStrifeStartScreen::DoProgress(int advance)
143{
144 int notch_pos;
145
146 if (CurPos < MaxPos)
147 {
148 notch_pos = ((CurPos + 1) * (ST_LASERSPACE_WIDTH - ST_LASER_WIDTH)) / MaxPos;
149 if (notch_pos != NotchPos && !(notch_pos & 1))
150 { // Time to update.
151 DrawStuff(NotchPos, notch_pos);
152 NotchPos = notch_pos;
153 StartupTexture->CleanHardwareData(true);
154 }
155 }
156 return FStartScreen::DoProgress(advance);
157}
158
159//==========================================================================
160//

Callers

nothing calls this directly

Calls 1

CleanHardwareDataMethod · 0.80

Tested by

no test coverage detected