mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix NoLaser Tile. Crazy shotguns work
This commit is contained in:
parent
1a559c5d03
commit
e458f02dfe
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue