diff options
| author | Johannes Schickel | 2005-11-01 14:19:50 +0000 | 
|---|---|---|
| committer | Johannes Schickel | 2005-11-01 14:19:50 +0000 | 
| commit | c3ef43fd6bf00f1285c3ba067e9f686559656eac (patch) | |
| tree | 43370bd4d49c684f9c431d6608514ebbd098a2c8 /kyra/screen.cpp | |
| parent | e763d1e060b9652923474fad620d6672bce4d120 (diff) | |
| download | scummvm-rg350-c3ef43fd6bf00f1285c3ba067e9f686559656eac.tar.gz scummvm-rg350-c3ef43fd6bf00f1285c3ba067e9f686559656eac.tar.bz2 scummvm-rg350-c3ef43fd6bf00f1285c3ba067e9f686559656eac.zip  | |
Implemented the pathfinder and applied patch # 1342902.
Also added debug printouts to some functions.
svn-id: r19386
Diffstat (limited to 'kyra/screen.cpp')
| -rw-r--r-- | kyra/screen.cpp | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/kyra/screen.cpp b/kyra/screen.cpp index 939f5c6360..9a7a694bb3 100644 --- a/kyra/screen.cpp +++ b/kyra/screen.cpp @@ -1775,4 +1775,16 @@ uint8 *Screen::getPalette(int num) {  	return _palettes[num-1];  } +byte Screen::getShapeFlag1(int x, int y) { +	debug(9, "getShapeFlag1(%d, %d)", x, y); +	uint8 color = _shapePages[0][y * SCREEN_W + x]; +	color &= 0x80; +	color ^= 0x80; +	 +	if (color & 0x80) { +		return (color << 1) + 1; +	}	 +	return (color << 1); +} +  } // End of namespace Kyra  | 
