| 674 | float CLevel::GetEnvironmentGameDayTimeSec() { return (float(s64(GetEnvironmentGameTime() % (24 * 60 * 60 * 1000))) / 1000.f); } |
| 675 | |
| 676 | void CLevel::ScriptDebugRender() |
| 677 | { |
| 678 | if (m_debug_render_queue.empty()) |
| 679 | return; |
| 680 | |
| 681 | bool hasVisibleObj = false; |
| 682 | |
| 683 | xr_map<u16, DBG_ScriptObject*>::iterator it = m_debug_render_queue.begin(); |
| 684 | xr_map<u16, DBG_ScriptObject*>::iterator it_e = m_debug_render_queue.end(); |
| 685 | for (; it != it_e; ++it) |
| 686 | { |
| 687 | DBG_ScriptObject* obj = (*it).second; |
| 688 | if (obj->m_visible) |
| 689 | { |
| 690 | obj->Render(); |
| 691 | hasVisibleObj = true; |
| 692 | } |
| 693 | } |
| 694 | |
| 695 | // demonized: fix of showing console window when there are no visible gizmos |
| 696 | if (hasVisibleObj) |
| 697 | DRender->OnFrameEnd(); |
| 698 | } |
| 699 | |
| 700 | void CLevel::GetGameDateTime(u32& year, u32& month, u32& day, u32& hours, u32& mins, u32& secs, u32& milisecs) |
| 701 | { |
nothing calls this directly
no test coverage detected