- Статус
- Оффлайн
- Регистрация
- 27 Июн 2020
- Сообщения
- 164
- Реакции
- 20
Код:
#ifdef _DEBUG
logo.append(" [debug]");
#endif
// time.
time_t t = std::time(nullptr);
std::ostringstream time;
time << std::put_time(std::localtime(&t), XOR("%H:%M:%S"));
std::string text = tfm::format(XOR("%s | %s | %s"), logo, g_cl.m_user, time.str().data());
if (g_csgo.m_engine->IsInGame())
{
// get round trip time in milliseconds.
int ms = std::max(0, (int)std::round(g_cl.m_latency * 1000.f));
text = tfm::format(XOR("%s | %s | delay: %ims | %itick | %s"), logo, ms, g_cl.m_rate, time.str().data());
}
render::FontSize_t size = render::Watermarke.size(text);
// bg
render::rect_filled(m_width - size.m_width - 18, 10, size.m_width + 8, size.m_height + 8, Color(0, 0, 0));
render::rect_filled(m_width - size.m_width - 18, 10, size.m_width + 8, 2, clr);
// text
render::Watermarke.string(m_width - 14, 14, col_text, text, render::ALIGN_RIGHT);
}
ошибка на 8 строчке
Серьезность Код Описание Проект Файл Строка Состояние подавления
Ошибка C4996 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. (компилируется исходный файл core\client.cpp) pandora.uno c:\users\rtwer\onedrive\рабочий стол\pandora.uno\decimation\core\client.cpp 38