271 EndTime:= 0 |
270 EndTime:= 0 |
272 end |
271 end |
273 end; |
272 end; |
274 |
273 |
275 // Teams Healths |
274 // Teams Healths |
276 team:= TeamsList; |
275 for t:= 0 to Pred(TeamsCount) do |
277 while team <> nil do |
276 with TeamsArray[t]^ do |
278 begin |
277 begin |
279 r.x:= cScreenWidth div 2 - team^.NameTag^.w - 3; |
278 r.x:= cScreenWidth div 2 - NameTag^.w - 3; |
280 r.y:= team^.DrawHealthY; |
279 r.y:= DrawHealthY; |
281 r.w:= team^.NameTag^.w; |
280 r.w:= NameTag^.w; |
282 r.h:= team^.NameTag^.h; |
281 r.h:= NameTag^.h; |
283 SDL_UpperBlit(team^.NameTag, nil, Surface, @r); |
282 SDL_UpperBlit(NameTag, nil, Surface, @r); |
284 r:= team^.HealthRect; |
283 r:= HealthRect; |
285 r.w:= 2 + team^.TeamHealthBarWidth; |
284 r.w:= 2 + TeamHealthBarWidth; |
286 DrawFromStoreRect(cScreenWidth div 2, |
285 DrawFromStoreRect(cScreenWidth div 2, |
287 Team^.DrawHealthY, |
286 DrawHealthY, |
288 @r, Surface); |
287 @r, Surface); |
289 inc(r.x, cTeamHealthWidth + 2); |
288 inc(r.x, cTeamHealthWidth + 2); |
290 r.w:= 3; |
289 r.w:= 3; |
291 DrawFromStoreRect(cScreenWidth div 2 + team^.TeamHealthBarWidth + 2, |
290 DrawFromStoreRect(cScreenWidth div 2 + TeamHealthBarWidth + 2, |
292 Team^.DrawHealthY, |
291 DrawHealthY, |
293 @r, Surface); |
292 @r, Surface); |
294 team:= team^.Next |
|
295 end; |
293 end; |
296 |
294 |
297 // Lag alert |
295 // Lag alert |
298 if isInLag then DrawSprite(sprLag, 32, 32 + cConsoleYAdd, (hwFloatTicks shr 7) mod 12, Surface); |
296 if isInLag then DrawSprite(sprLag, 32, 32 + cConsoleYAdd, (hwFloatTicks shr 7) mod 12, Surface); |
299 |
297 |