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

Method Tick

source/common/console/c_notifybufferbase.cpp:112–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void FNotifyBufferBase::Tick()
113{
114 if (TopGoal > Top)
115 {
116 Top++;
117 }
118 else if (TopGoal < Top)
119 {
120 Top--;
121 }
122
123 // Remove lines from the beginning that have expired.
124 unsigned i;
125 for (i = 0; i < Text.Size(); ++i)
126 {
127 Text[i].Ticker++;
128 }
129
130 for (i = 0; i < Text.Size(); ++i)
131 {
132 if (Text[i].TimeOut != 0 && Text[i].TimeOut > Text[i].Ticker)
133 break;
134 }
135 if (i > 0)
136 {
137 Text.Delete(0, i);
138 Top += LineHeight;
139 }
140}
141

Callers 1

C_TickerFunction · 0.45

Calls 2

SizeMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected