Browse Source

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.
BeniS 8 years ago
parent
commit
fcdf2286b6
2 changed files with 5 additions and 4 deletions
  1. 2
    1
      src/otclient/game.cpp
  2. 3
    3
      src/otclient/item.cpp

+ 2
- 1
src/otclient/game.cpp View File

@@ -506,9 +506,10 @@ bool Game::walk(Otc::Direction direction)
506 506
         return false;
507 507
     }
508 508
 
509
-    // must add a new walk event
509
+    // check we can walk and add new walk event if false
510 510
     if(!m_localPlayer->canWalk(direction)) {
511 511
         if(m_lastWalkDir != direction) {
512
+            // must add a new walk event
512 513
             float ticks = m_localPlayer->getStepTicksLeft();
513 514
             if(ticks < 0)
514 515
                 ticks = 0;

+ 3
- 3
src/otclient/item.cpp View File

@@ -216,9 +216,9 @@ int Item::getSubType()
216 216
 {
217 217
     if(isSplash() || isFluidContainer())
218 218
         return m_countOrSubType;
219
-    if(g_game.getProtocolVersion() >= 900)
220
-        return 0;
221
-    return 1;
219
+    if(m_countOrSubType > 0 && g_game.getProtocolVersion() >= 870)
220
+        return 1;
221
+    return 0;
222 222
 }
223 223
 
224 224
 int Item::getCount()

Loading…
Cancel
Save