From: <bal...@us...> - 2003-12-01 00:04:58
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs1:/tmp/cvs-serv3589/plugins/Core Modified Files: Map.cpp Log Message: Bug Fixed : Map.cpp : Fixed LightMap calculations Index: Map.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/Map.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** Map.cpp 30 Nov 2003 23:26:04 -0000 1.30 --- Map.cpp 1 Dec 2003 00:04:55 -0000 1.31 *************** *** 145,149 **** int ax = actors[i].XPos, ay = actors[i].YPos; int cx = ax/16; ! int cy = ay/16; Color tint = LightMap->GetPixel(cx, cy); tint.a = 0xA0; --- 145,149 ---- int ax = actors[i].XPos, ay = actors[i].YPos; int cx = ax/16; ! int cy = ay/12; Color tint = LightMap->GetPixel(cx, cy); tint.a = 0xA0; *************** *** 238,242 **** int Map::GetBlocked(int cx, int cy) { int block = SearchMap->GetPixelIndex(cx/16, cy/12); - printf("%d\n", block); switch(block) { case 1: --- 238,241 ---- |