|
From: <dar...@us...> - 2009-09-16 14:36:06
|
Revision: 4964
http://openlierox.svn.sourceforge.net/openlierox/?rev=4964&view=rev
Author: dark_charlie
Date: 2009-09-16 14:35:55 +0000 (Wed, 16 Sep 2009)
Log Message:
-----------
Fixed a crash in DrawObjectShadow
Modified Paths:
--------------
src/common/CMap.cpp
Modified: src/common/CMap.cpp
===================================================================
--- src/common/CMap.cpp 2009-09-16 12:02:46 UTC (rev 4963)
+++ src/common/CMap.cpp 2009-09-16 14:35:55 UTC (rev 4964)
@@ -1117,7 +1117,7 @@
// HINT: this is not really exact, it can happen that two shadows overlap
// This case is however *very* rare and it would be too difficult/slow to check for it here
if (w <= getCollGridCellW() && h <= getCollGridCellH() &&
- CollisionGrid[(i.map_y + i.h / 2) * Width + (i.map_x + i.w / 2)] == 0 && bmpObjShadow) {
+ GetCollisionFlag(i.map_x, i.map_y, false) == 0 && bmpObjShadow) {
DrawImageAdv(bmpDest, bmpObjShadow, i.obj_x, i.obj_y, i.dest_x, i.dest_y, i.w, i.h);
return;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|