| 355 | } |
| 356 | |
| 357 | void CGameCharacter::Draw(int x, int y) |
| 358 | { |
| 359 | ScopedPerfMarker(__FUNCTION__); |
| 360 | |
| 361 | if (TimeToRandomFidget < g_Ticks) |
| 362 | { |
| 363 | SetRandomFidgetAnimation(); |
| 364 | } |
| 365 | |
| 366 | g_RenderedObjectsCountInGameWindow++; |
| 367 | |
| 368 | uint32_t lastSBsel = g_StatusbarUnderMouse; |
| 369 | |
| 370 | if (!IsPlayer() && g_Player->Warmode && g_SelectedObject.Object == this) |
| 371 | { |
| 372 | g_StatusbarUnderMouse = Serial; |
| 373 | } |
| 374 | |
| 375 | g_AnimationManager.DrawCharacter(this, x, y); //Draw character |
| 376 | |
| 377 | g_StatusbarUnderMouse = lastSBsel; |
| 378 | |
| 379 | DrawEffects(x, y); |
| 380 | } |
| 381 | |
| 382 | void CGameCharacter::Select(int x, int y) |
| 383 | { |
nothing calls this directly
no test coverage detected