Fix issue #155 (only tested on pv973)
Please let me know if pv870+ works now. Note: * pv = protocol version, * cv = client version For people wondering.
This commit is contained in:
parent
abf0ee4303
commit
fcdf2286b6
|
@ -506,9 +506,10 @@ bool Game::walk(Otc::Direction direction)
|
|||
return false;
|
||||
}
|
||||
|
||||
// must add a new walk event
|
||||
// check we can walk and add new walk event if false
|
||||
if(!m_localPlayer->canWalk(direction)) {
|
||||
if(m_lastWalkDir != direction) {
|
||||
// must add a new walk event
|
||||
float ticks = m_localPlayer->getStepTicksLeft();
|
||||
if(ticks < 0)
|
||||
ticks = 0;
|
||||
|
|
|
@ -216,9 +216,9 @@ int Item::getSubType()
|
|||
{
|
||||
if(isSplash() || isFluidContainer())
|
||||
return m_countOrSubType;
|
||||
if(g_game.getProtocolVersion() >= 900)
|
||||
return 0;
|
||||
return 1;
|
||||
if(m_countOrSubType > 0 && g_game.getProtocolVersion() >= 870)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Item::getCount()
|
||||
|
|
Loading…
Reference in New Issue