Skip to content

Commit 3b2d76d

Browse files
authored
Merge pull request #26 from TeeMidnight/pr-fix-mis-tile-name
Renaming the tiles to prevent misunderstanding
2 parents 8feca48 + ebb426a commit 3b2d76d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/game/collision.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ void CCollision::Init(class CLayers *pLayers)
3939
case TILE_DEATH:
4040
m_pTiles[i].m_Index = COLFLAG_DEATH;
4141
break;
42-
case TILE_SOLID:
42+
case TILE_HOOKABLE:
4343
m_pTiles[i].m_Index = COLFLAG_SOLID;
4444
break;
45-
case TILE_NOHOOK:
46-
m_pTiles[i].m_Index = COLFLAG_SOLID|COLFLAG_NOHOOK;
45+
case TILE_UNHOOKABLE:
46+
m_pTiles[i].m_Index = COLFLAG_SOLID|COLFLAG_UNHOOKABLE;
4747
break;
4848
default:
4949
m_pTiles[i].m_Index = 0;

src/game/collision.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CCollision
2020
{
2121
COLFLAG_SOLID=1,
2222
COLFLAG_DEATH=2,
23-
COLFLAG_NOHOOK=4,
23+
COLFLAG_UNHOOKABLE=4,
2424
};
2525

2626
CCollision();

src/game/editor/popups.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bool CEditor::PopupGroup(void *pContext, CUIRect View)
5050
for(int y = 0; y < gl->m_Height; ++y)
5151
for(int x = 0; x < gl->m_Width; ++x)
5252
{
53-
if(gl->m_pTiles[y*gl->m_Width+x].m_Index > static_cast<unsigned char>(TILE_NOHOOK))
53+
if(gl->m_pTiles[y*gl->m_Width+x].m_Index > static_cast<unsigned char>(TILE_UNHOOKABLE))
5454
continue;
5555

5656
bool Found = false;

src/game/gamecore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void CCharacterCore::Tick(bool UseInput)
198198
int Hit = m_pCollision->IntersectLine(m_HookPos, NewPos, &NewPos, 0);
199199
if(Hit)
200200
{
201-
if(Hit&CCollision::COLFLAG_NOHOOK)
201+
if(Hit&CCollision::COLFLAG_UNHOOKABLE)
202202
GoingToRetract = true;
203203
else
204204
GoingToHitGround = true;

src/game/mapitems.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ enum
4444
NUM_ENTITIES,
4545

4646
TILE_AIR=0,
47-
TILE_SOLID,
47+
TILE_HOOKABLE,
4848
TILE_DEATH,
49-
TILE_NOHOOK,
49+
TILE_UNHOOKABLE,
5050

5151
TILEFLAG_VFLIP=1,
5252
TILEFLAG_HFLIP=2,

0 commit comments

Comments
 (0)