From 238bb8599fe25133416448739a8b298978879aba Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 13 Jul 2019 09:26:08 +0800 Subject: [PATCH] 1 --- a8/sysutils.cc | 2 ++ a8/vec2.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/a8/sysutils.cc b/a8/sysutils.cc index b973989..9c50bba 100644 --- a/a8/sysutils.cc +++ b/a8/sysutils.cc @@ -217,7 +217,9 @@ namespace a8 time_t GetDateTimeSeconds(const char* datetime_str) { + #if 0 int g_time_zone = 8; + #endif struct tm stm = {0}; strptime(datetime_str, "%Y-%m-%d %H:%M:%S", &stm); long t = mktime(&stm); diff --git a/a8/vec2.cc b/a8/vec2.cc index a8c755e..ed5762c 100644 --- a/a8/vec2.cc +++ b/a8/vec2.cc @@ -92,9 +92,9 @@ namespace a8 float Vec2::CalcAngle(const Vec2& b) { float a1 = acos(Dot(b) / Norm() / b.Norm()); +#if 0 float a2 = atan2(y, x); float a3 = atan2(y, x) / 0.017 - 90.0f; -#if 0 return a2; #else bool at_right_side = Vec2::RIGHT.Dot(*this) > 0.0001f;