Fixed an overflow bug
This commit is contained in:
@@ -62,6 +62,7 @@ int BarrierData::Update(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret += lua_tonumber(L, -1);
|
ret += lua_tonumber(L, -1);
|
||||||
|
lua_pop(L, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
Entity::Update();
|
Entity::Update();
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ int CreatureData::Update(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret += lua_tonumber(L, -1);
|
ret += lua_tonumber(L, -1);
|
||||||
|
lua_pop(L, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
Entity::Update();
|
Entity::Update();
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ void RoomData::RunFrameCharacterBarrierCollisions() {
|
|||||||
|
|
||||||
|
|
||||||
//DEBUG: output barrierIndex, battleIndex
|
//DEBUG: output barrierIndex, battleIndex
|
||||||
std::cout << barrierIt.first << "\t" << barrierIt.second.GetBattleIndex() << std::endl;
|
// std::cout << barrierIt.first << "\t" << barrierIt.second.GetBattleIndex() << std::endl;
|
||||||
|
|
||||||
//Send the entry message to the client
|
//Send the entry message to the client
|
||||||
BarrierPacket newPacket;
|
BarrierPacket newPacket;
|
||||||
|
|||||||
Reference in New Issue
Block a user