mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
Changed a few mis-labeled range starts..no functionality change.
This commit is contained in:
parent
842f1fb9c7
commit
cc0f2ac37a
@ -866,7 +866,7 @@ void Client::BulkSendInventoryItems() {
|
|||||||
std::map<uint16, std::string>::iterator itr;
|
std::map<uint16, std::string>::iterator itr;
|
||||||
|
|
||||||
//Inventory items
|
//Inventory items
|
||||||
for(slot_id = MAP_BEGIN; slot_id < EmuConstants::MAP_POSSESSIONS_SIZE; slot_id++) {
|
for(slot_id = MAIN_BEGIN; slot_id < EmuConstants::MAP_POSSESSIONS_SIZE; slot_id++) {
|
||||||
const ItemInst* inst = m_inv[slot_id];
|
const ItemInst* inst = m_inv[slot_id];
|
||||||
if(inst) {
|
if(inst) {
|
||||||
std::string packet = inst->Serialize(slot_id);
|
std::string packet = inst->Serialize(slot_id);
|
||||||
|
|||||||
@ -364,7 +364,7 @@ Corpse::Corpse(Client* client, int32 in_rezexp)
|
|||||||
// worn + inventory + cursor
|
// worn + inventory + cursor
|
||||||
std::list<uint32> removed_list;
|
std::list<uint32> removed_list;
|
||||||
bool cursor = false;
|
bool cursor = false;
|
||||||
for(i = MAP_BEGIN; i < EmuConstants::MAP_POSSESSIONS_SIZE; i++)
|
for(i = MAIN_BEGIN; i < EmuConstants::MAP_POSSESSIONS_SIZE; i++)
|
||||||
{
|
{
|
||||||
if(i == MainAmmo && client->GetClientVersion() >= EQClientSoF) {
|
if(i == MainAmmo && client->GetClientVersion() >= EQClientSoF) {
|
||||||
item = client->GetInv().GetItem(MainPowerSource);
|
item = client->GetInv().GetItem(MainPowerSource);
|
||||||
|
|||||||
@ -1226,7 +1226,7 @@ void Client::SendLootItemInPacket(const ItemInst* inst, int16 slot_id)
|
|||||||
|
|
||||||
bool Client::IsValidSlot(uint32 slot) {
|
bool Client::IsValidSlot(uint32 slot) {
|
||||||
if ((slot == (uint32)INVALID_INDEX) ||
|
if ((slot == (uint32)INVALID_INDEX) ||
|
||||||
(slot >= MAP_BEGIN && slot < EmuConstants::MAP_POSSESSIONS_SIZE) ||
|
(slot >= MAIN_BEGIN && slot < EmuConstants::MAP_POSSESSIONS_SIZE) ||
|
||||||
(slot >= EmuConstants::GENERAL_BAGS_BEGIN && slot <= EmuConstants::CURSOR_BAG_END) ||
|
(slot >= EmuConstants::GENERAL_BAGS_BEGIN && slot <= EmuConstants::CURSOR_BAG_END) ||
|
||||||
(slot >= EmuConstants::TRIBUTE_BEGIN && slot <= EmuConstants::TRIBUTE_END) ||
|
(slot >= EmuConstants::TRIBUTE_BEGIN && slot <= EmuConstants::TRIBUTE_END) ||
|
||||||
(slot >= EmuConstants::BANK_BEGIN && slot <= EmuConstants::BANK_END) ||
|
(slot >= EmuConstants::BANK_BEGIN && slot <= EmuConstants::BANK_END) ||
|
||||||
@ -1998,7 +1998,7 @@ void Client::RemoveNoRent(bool client_update) {
|
|||||||
int16 slot_id;
|
int16 slot_id;
|
||||||
|
|
||||||
// personal
|
// personal
|
||||||
for(slot_id = MAP_BEGIN; slot_id < EmuConstants::MAP_POSSESSIONS_SIZE; slot_id++) {
|
for(slot_id = MAIN_BEGIN; slot_id < EmuConstants::MAP_POSSESSIONS_SIZE; slot_id++) {
|
||||||
const ItemInst* inst = m_inv[slot_id];
|
const ItemInst* inst = m_inv[slot_id];
|
||||||
if(inst && !inst->GetItem()->NoRent) {
|
if(inst && !inst->GetItem()->NoRent) {
|
||||||
mlog(INVENTORY__SLOTS, "NoRent Timer Lapse: Deleting %s from slot %i", inst->GetItem()->Name, slot_id);
|
mlog(INVENTORY__SLOTS, "NoRent Timer Lapse: Deleting %s from slot %i", inst->GetItem()->Name, slot_id);
|
||||||
@ -2065,7 +2065,7 @@ void Client::RemoveDuplicateLore(bool client_update) {
|
|||||||
int16 slot_id;
|
int16 slot_id;
|
||||||
|
|
||||||
// personal
|
// personal
|
||||||
for(slot_id = MAP_BEGIN; slot_id < EmuConstants::MAP_POSSESSIONS_SIZE; slot_id++) {
|
for(slot_id = MAIN_BEGIN; slot_id < EmuConstants::MAP_POSSESSIONS_SIZE; slot_id++) {
|
||||||
ItemInst* inst = m_inv.PopItem(slot_id);
|
ItemInst* inst = m_inv.PopItem(slot_id);
|
||||||
if(inst) {
|
if(inst) {
|
||||||
if(CheckLoreConflict(inst->GetItem())) {
|
if(CheckLoreConflict(inst->GetItem())) {
|
||||||
|
|||||||
@ -68,7 +68,7 @@ void Object::HandleAugmentation(Client* user, const AugmentItem_Struct* in_augme
|
|||||||
|
|
||||||
// Verify that no more than two items are in container to guarantee no inadvertant wipes.
|
// Verify that no more than two items are in container to guarantee no inadvertant wipes.
|
||||||
uint8 itemsFound = 0;
|
uint8 itemsFound = 0;
|
||||||
for (uint8 i = MAP_BEGIN; i < EmuConstants::MAP_WORLD_SIZE; i++)
|
for (uint8 i = MAIN_BEGIN; i < EmuConstants::MAP_WORLD_SIZE; i++)
|
||||||
{
|
{
|
||||||
const ItemInst* inst = container->GetItem(i);
|
const ItemInst* inst = container->GetItem(i);
|
||||||
if (inst)
|
if (inst)
|
||||||
@ -212,7 +212,7 @@ void Object::HandleAugmentation(Client* user, const AugmentItem_Struct* in_augme
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Delete items in our inventory container...
|
// Delete items in our inventory container...
|
||||||
for (uint8 i = MAP_BEGIN; i < EmuConstants::MAP_WORLD_SIZE; i++)
|
for (uint8 i = MAIN_BEGIN; i < EmuConstants::MAP_WORLD_SIZE; i++)
|
||||||
{
|
{
|
||||||
const ItemInst* inst = container->GetItem(i);
|
const ItemInst* inst = container->GetItem(i);
|
||||||
if (inst)
|
if (inst)
|
||||||
@ -353,7 +353,7 @@ void Object::HandleCombine(Client* user, const NewCombine_Struct* in_combine, Ob
|
|||||||
safe_delete(outapp);
|
safe_delete(outapp);
|
||||||
database.DeleteWorldContainer(worldo->m_id, zone->GetZoneID());
|
database.DeleteWorldContainer(worldo->m_id, zone->GetZoneID());
|
||||||
} else{
|
} else{
|
||||||
for (uint8 i = MAP_BEGIN; i < EmuConstants::MAP_WORLD_SIZE; i++) {
|
for (uint8 i = MAIN_BEGIN; i < EmuConstants::MAP_WORLD_SIZE; i++) {
|
||||||
const ItemInst* inst = container->GetItem(i);
|
const ItemInst* inst = container->GetItem(i);
|
||||||
if (inst) {
|
if (inst) {
|
||||||
user->DeleteItemInInventory(Inventory::CalcSlotId(in_combine->container_slot,i),0,true);
|
user->DeleteItemInInventory(Inventory::CalcSlotId(in_combine->container_slot,i),0,true);
|
||||||
@ -1334,7 +1334,7 @@ bool ZoneDatabase::GetTradeRecipe(const ItemInst* container, uint8 c_type, uint3
|
|||||||
if (RunQuery(TSquery, MakeAnyLenString(&TSquery, "SELECT item_id, componentcount from tradeskill_recipe_entries where recipe_id=%i AND componentcount > 0", recipe_id), TSerrbuf, &TSresult)) {
|
if (RunQuery(TSquery, MakeAnyLenString(&TSquery, "SELECT item_id, componentcount from tradeskill_recipe_entries where recipe_id=%i AND componentcount > 0", recipe_id), TSerrbuf, &TSresult)) {
|
||||||
while((TSrow = mysql_fetch_row(TSresult))!=nullptr) {
|
while((TSrow = mysql_fetch_row(TSresult))!=nullptr) {
|
||||||
int ccnt = 0;
|
int ccnt = 0;
|
||||||
for(int x = MAP_BEGIN; x < EmuConstants::MAP_WORLD_SIZE; x++) {
|
for(int x = MAIN_BEGIN; x < EmuConstants::MAP_WORLD_SIZE; x++) {
|
||||||
const ItemInst* inst = container->GetItem(x);
|
const ItemInst* inst = container->GetItem(x);
|
||||||
if(inst){
|
if(inst){
|
||||||
const Item_Struct* item = GetItem(inst->GetItem()->ID);
|
const Item_Struct* item = GetItem(inst->GetItem()->ID);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user