1
This commit is contained in:
parent
11f2866ade
commit
399eed8bd8
@ -173,6 +173,7 @@ namespace a8
|
||||
}
|
||||
b_edges.push_back(seg);
|
||||
}
|
||||
#if 0
|
||||
auto GetProjectionWithAxis =
|
||||
[] (std::vector<a8::Vec2> vertices, a8::Vec2 axis) -> a8::Vec2 {
|
||||
axis.Normalize();
|
||||
@ -182,6 +183,7 @@ namespace a8
|
||||
|
||||
}
|
||||
};
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -207,7 +209,7 @@ namespace a8
|
||||
if (distance > _max) {
|
||||
return false;
|
||||
}
|
||||
float angle = (a_pos - b_pos).CalcAngleEx(a8::Vec2::UP);
|
||||
//float angle = (a_pos - b_pos).CalcAngleEx(a8::Vec2::UP);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -399,6 +399,10 @@ namespace a8
|
||||
return strcmp(s1 ? s1 : "", s2 ? s2 : "");
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
|
||||
size_t GetUtf8Length(const char *str)
|
||||
{
|
||||
static unsigned char utf8_look_for_table[] =
|
||||
@ -455,6 +459,7 @@ namespace a8
|
||||
len++, ptr+=UTFLEN((unsigned char)*ptr)) ;
|
||||
return len;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
std::string CopyString(const std::string& str)
|
||||
{
|
||||
|
@ -22,10 +22,10 @@ namespace a8
|
||||
|
||||
struct SendQueueNode
|
||||
{
|
||||
char* buff = nullptr;
|
||||
unsigned int bufflen = 0;
|
||||
unsigned int sent_bytes = 0;
|
||||
SendQueueNode* next = nullptr;
|
||||
char* buff;
|
||||
unsigned int bufflen;
|
||||
unsigned int sent_bytes;
|
||||
SendQueueNode* next;
|
||||
};
|
||||
|
||||
typedef std::function<void(const a8::Args&)> CommonCbProc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user