MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Map_Sprite_Check_Around_Position

Method Map_Sprite_Check_Around_Position

Source/Fodder.cpp:5136–5163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5134}
5135
5136int16 cFodder::Map_Sprite_Check_Around_Position(sSprite* pSprite) {
5137 int16 Data4 = 0x0A;
5138 int16 Data0 = -13;
5139
5140 int16 ax = Map_Terrain_Get_Type_And_Walkable(pSprite, Data0, Data4);
5141 if (ax)
5142 return ax;
5143
5144 Data4 = 0x14;
5145 Data0 = -13;
5146 ax = Map_Terrain_Get_Type_And_Walkable(pSprite, Data0, Data4);
5147 if (ax)
5148 return ax;
5149
5150 Data4 = 0x0A;
5151 Data0 = -7;
5152 ax = Map_Terrain_Get_Type_And_Walkable(pSprite, Data0, Data4);
5153 if (ax)
5154 return ax;
5155
5156 Data4 = 0x14;
5157 Data0 = -7;
5158 ax = Map_Terrain_Get_Type_And_Walkable(pSprite, Data0, Data4);
5159 if (ax)
5160 return ax;
5161
5162 return 0;
5163}
5164
5165void cFodder::Sprite_Handle_Vehicle_Human(sSprite* pSprite) {
5166

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected