Fix NoLaser Tile. Crazy shotguns work

This commit is contained in:
btd 2010-08-15 16:28:34 +04:00
parent 1a559c5d03
commit e458f02dfe
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ int CCollision::GetTile(int x, int y)
int nx = clamp(x/32, 0, m_Width-1);
int ny = clamp(y/32, 0, m_Height-1);
/*dbg_msg("GetTile","m_Index %d",m_pTiles[ny*m_Width+nx].m_Index);//Remove */
if(m_pTiles[ny*m_Width+nx].m_Index == COLFLAG_SOLID || m_pTiles[ny*m_Width+nx].m_Index == (COLFLAG_SOLID|COLFLAG_NOHOOK) || m_pTiles[ny*m_Width+nx].m_Index == COLFLAG_DEATH)
if(m_pTiles[ny*m_Width+nx].m_Index == COLFLAG_SOLID || m_pTiles[ny*m_Width+nx].m_Index == (COLFLAG_SOLID|COLFLAG_NOHOOK) || m_pTiles[ny*m_Width+nx].m_Index == COLFLAG_DEATH || m_pTiles[ny*m_Width+nx].m_Index == COLFLAG_NOLASER)
return m_pTiles[ny*m_Width+nx].m_Index;
else
return 0;

View file

@ -79,7 +79,7 @@ enum
//DDrace - Doors
ENTITY_DOOR=49,
ENTITY_TRIGGER,
ENTITY_CONNECTOR_D=52,//TODO: in ddrace stable used this one no need others rename ENTITY_CONNECTOR
ENTITY_CONNECTOR_D=52,
ENTITY_CONNECTOR_DR,
ENTITY_CONNECTOR_R,
ENTITY_CONNECTOR_RU,