Commit 58be174a authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix merge conflict

parent e8ca4858
...@@ -39,6 +39,7 @@ bool DataManager::LoadDB(const char* file) { ...@@ -39,6 +39,7 @@ bool DataManager::LoadDB(const char* file) {
cd.attribute = sqlite3_column_int(pStmt, 9); cd.attribute = sqlite3_column_int(pStmt, 9);
cd.category = sqlite3_column_int(pStmt, 10); cd.category = sqlite3_column_int(pStmt, 10);
_datas.insert(std::make_pair(cd.code, cd)); _datas.insert(std::make_pair(cd.code, cd));
/*
len = BufferIO::DecodeUTF8((const char*)sqlite3_column_text(pStmt, 12), strBuffer); len = BufferIO::DecodeUTF8((const char*)sqlite3_column_text(pStmt, 12), strBuffer);
if(len) { if(len) {
cs.name = new wchar_t[len + 1]; cs.name = new wchar_t[len + 1];
......
...@@ -105,17 +105,15 @@ public: ...@@ -105,17 +105,15 @@ public:
void AddChatMsg(wchar_t* msg, int player); void AddChatMsg(wchar_t* msg, int player);
void ClearTextures(); void ClearTextures();
void CloseDuelWindow(); void CloseDuelWindow();
*/
*/ */
int LocalPlayer(int player); int LocalPlayer(int player);
const wchar_t* LocalName(int local_player); const wchar_t* LocalName(int local_player);
/* /*
bool HasFocus(EGUI_ELEMENT_TYPE type) const { bool HasFocus(EGUI_ELEMENT_TYPE type) const {
irr::gui::IGUIElement* focus = env->getFocus(); //irr::gui::IGUIElement* focus = env->getFocus();
return focus && focus->hasType(type); return focus && focus->hasType(type);
} }
*/
*/ */
Mutex gMutex; Mutex gMutex;
...@@ -129,8 +127,7 @@ public: ...@@ -129,8 +127,7 @@ public:
Config gameConf; Config gameConf;
DuelInfo dInfo; DuelInfo dInfo;
/* /*std::list<FadingUnit> fadingList;
std::list<FadingUnit> fadingList;
std::vector<int> logParam; std::vector<int> logParam;
std::wstring chatMsg[8]; std::wstring chatMsg[8];
...@@ -162,7 +159,6 @@ public: ...@@ -162,7 +159,6 @@ public:
bool is_building; bool is_building;
bool is_siding; bool is_siding;
*/
*/ */
/* /*
ClientField dField; ClientField dField;
......
...@@ -90,5 +90,6 @@ int main(int argc, char* argv[]) { ...@@ -90,5 +90,6 @@ int main(int argc, char* argv[]) {
#else #else
#endif //_WIN32 #endif //_WIN32
*/
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
...@@ -790,7 +790,7 @@ int SingleMode::MessageHandler(long fduel, int type) { ...@@ -790,7 +790,7 @@ int SingleMode::MessageHandler(long fduel, int type) {
if(enable_log == 1) { if(enable_log == 1) {
wchar_t wbuf[1024]; wchar_t wbuf[1024];
BufferIO::DecodeUTF8(msgbuf, wbuf); BufferIO::DecodeUTF8(msgbuf, wbuf);
//mainGame->AddChatMsg(wbuf, 9); mainGame->AddChatMsg(wbuf, 9);
} else if(enable_log == 2) { } else if(enable_log == 2) {
FILE* fp = fopen("error.log", "at"); FILE* fp = fopen("error.log", "at");
if(!fp) if(!fp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment