making the map quality requisites more transparent: 1) "MAP CHECK FAIL" messages in the server logs; 2) console messages to the client (WiP).

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5769 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-10-19 12:28:17 +00:00
parent f4553d86c5
commit 29bea67da1
6 changed files with 22 additions and 11 deletions
+1
View File
@@ -93,6 +93,7 @@ int getmaxarea(int inversed_x, int inversed_y, int transposed, int ml_factor, ch
int checkarea(int maplayout_factor, char *maplayout)
{
int area = 0, maxarea = 0;
if (!maplayout) { printf("WARNING: there is no maplayout to read in checkarea!"); return 0; }
for (int i=0; i < 8; i++) {
area = getmaxarea((i & 1),(i & 2),(i & 4), maplayout_factor, maplayout);
if ( area > maxarea ) maxarea = area;