浏览代码

Probably last bugfixes for 0.3

Michał W. Urbańczyk 18 年之前
父节点
当前提交
8440ffb39b
共有 3 个文件被更改,包括 6 次插入2 次删除
  1. 2 0
      AI/EmptyAI/Z_EmptyAI.vcproj
  2. 2 0
      CCallback.cpp
  3. 2 2
      CMT.cpp

+ 2 - 0
AI/EmptyAI/Z_EmptyAI.vcproj

@@ -109,6 +109,7 @@
 				InlineFunctionExpansion="2"
 				EnableIntrinsicFunctions="true"
 				FavorSizeOrSpeed="1"
+				OmitFramePointers="true"
 				EnableFiberSafeOptimizations="true"
 				WholeProgramOptimization="true"
 			/>
@@ -124,6 +125,7 @@
 			<Tool
 				Name="VCLinkerTool"
 				OutputFile="../EmptyAI.dll"
+				LinkTimeCodeGeneration="1"
 			/>
 			<Tool
 				Name="VCALinkTool"

+ 2 - 0
CCallback.cpp

@@ -122,6 +122,8 @@ bool CCallback::moveHero(int ID, CPath * path, int idtype, int pathType)
 			int nn=0; //number of interfece of currently browsed player
 			for(std::map<int, PlayerState>::iterator j=CGI->state->players.begin(); j!=CGI->state->players.end(); ++j)//CGI->state->players.size(); ++j) //for testing
 			{
+				if (j->first > PLAYER_LIMIT)
+					break;
 				if(j->second.fogOfWarMap[stpos.x-1][stpos.y][stpos.z] || j->second.fogOfWarMap[endpos.x-1][endpos.y][endpos.z])
 				{ //player should be notified
 					CGI->playerint[j->first]->heroMoved(curd);

+ 2 - 2
CMT.cpp

@@ -203,8 +203,8 @@ void initGameState(CGameInfo * cgi)
 
 int _tmain(int argc, _TCHAR* argv[])
 { 
-	CLuaHandler luatest;
-	luatest.test();
+	//CLuaHandler luatest;
+	//luatest.test();
 
 		//CBIKHandler cb;
 		//cb.open("CSECRET.BIK");