@@ -76,7 +76,7 @@ void ProtocolGame::AddItem(NetworkMessage &msg, uint16_t id, uint8_t count)
76
76
msg.addByte (0x01 );
77
77
}
78
78
if (it.upgradeClassification > 0 ) {
79
- msg.addByte (0 );
79
+ msg.addByte (1 );
80
80
}
81
81
}
82
82
@@ -191,7 +191,7 @@ void ProtocolGame::AddItem(NetworkMessage &msg, const Item *item)
191
191
msg.addByte (podiumVisible ? static_cast <uint8_t >(boost::get<int64_t >(podiumVisible->value )) : 0x01 );
192
192
}
193
193
if (it.upgradeClassification > 0 ) {
194
- msg.addByte (0 );
194
+ msg.addByte (1 );
195
195
}
196
196
}
197
197
@@ -4046,7 +4046,7 @@ void ProtocolGame::sendMarketEnter(uint32_t depotId)
4046
4046
msg.add <uint16_t >(it->first );
4047
4047
if (Item::items[it->first ].upgradeClassification > 0 )
4048
4048
{
4049
- msg.addByte (0 );
4049
+ msg.addByte (1 );
4050
4050
}
4051
4051
msg.add <uint16_t >(std::min<uint32_t >(0xFFFF , it->second ));
4052
4052
}
@@ -4121,7 +4121,7 @@ void ProtocolGame::sendMarketBrowseItem(uint16_t itemId, const MarketOfferList &
4121
4121
msg.addByte (MARKETREQUEST_ITEM_BROWSE);
4122
4122
msg.addItemId (itemId);
4123
4123
if (Item::items[itemId].upgradeClassification > 0 ) {
4124
- msg.addByte (0 );
4124
+ msg.addByte (1 );
4125
4125
}
4126
4126
4127
4127
msg.add <uint32_t >(buyOffers.size ());
@@ -4155,7 +4155,7 @@ void ProtocolGame::sendMarketAcceptOffer(const MarketOfferEx &offer)
4155
4155
msg.addByte (MARKETREQUEST_ITEM_BROWSE);
4156
4156
msg.addItemId (offer.itemId );
4157
4157
if (Item::items[offer.itemId ].upgradeClassification > 0 ) {
4158
- msg.addByte (0 );
4158
+ msg.addByte (1 );
4159
4159
}
4160
4160
4161
4161
if (offer.type == MARKETACTION_BUY)
@@ -4195,7 +4195,7 @@ void ProtocolGame::sendMarketBrowseOwnOffers(const MarketOfferList &buyOffers, c
4195
4195
msg.add <uint16_t >(offer.counter );
4196
4196
msg.addItemId (offer.itemId );
4197
4197
if (Item::items[offer.itemId ].upgradeClassification > 0 ) {
4198
- msg.addByte (0 );
4198
+ msg.addByte (1 );
4199
4199
}
4200
4200
msg.add <uint16_t >(offer.amount );
4201
4201
msg.add <uint64_t >(offer.price );
@@ -4208,7 +4208,7 @@ void ProtocolGame::sendMarketBrowseOwnOffers(const MarketOfferList &buyOffers, c
4208
4208
msg.add <uint16_t >(offer.counter );
4209
4209
msg.addItemId (offer.itemId );
4210
4210
if (Item::items[offer.itemId ].upgradeClassification > 0 ) {
4211
- msg.addByte (0 );
4211
+ msg.addByte (1 );
4212
4212
}
4213
4213
msg.add <uint16_t >(offer.amount );
4214
4214
msg.add <uint64_t >(offer.price );
@@ -4230,7 +4230,7 @@ void ProtocolGame::sendMarketCancelOffer(const MarketOfferEx &offer)
4230
4230
msg.add <uint16_t >(offer.counter );
4231
4231
msg.addItemId (offer.itemId );
4232
4232
if (Item::items[offer.itemId ].upgradeClassification > 0 ) {
4233
- msg.addByte (0 );
4233
+ msg.addByte (1 );
4234
4234
}
4235
4235
msg.add <uint16_t >(offer.amount );
4236
4236
msg.add <uint64_t >(offer.price );
@@ -4244,7 +4244,7 @@ void ProtocolGame::sendMarketCancelOffer(const MarketOfferEx &offer)
4244
4244
msg.add <uint16_t >(offer.counter );
4245
4245
msg.addItemId (offer.itemId );
4246
4246
if (Item::items[offer.itemId ].upgradeClassification > 0 ) {
4247
- msg.addByte (0 );
4247
+ msg.addByte (1 );
4248
4248
}
4249
4249
msg.add <uint16_t >(offer.amount );
4250
4250
msg.add <uint64_t >(offer.price );
@@ -4271,7 +4271,7 @@ void ProtocolGame::sendMarketBrowseOwnHistory(const HistoryMarketOfferList &buyO
4271
4271
msg.add <uint16_t >(counterMap[it->timestamp ]++);
4272
4272
msg.addItemId (it->itemId );
4273
4273
if (Item::items[it->itemId ].upgradeClassification > 0 ) {
4274
- msg.addByte (0 );
4274
+ msg.addByte (1 );
4275
4275
}
4276
4276
msg.add <uint16_t >(it->amount );
4277
4277
msg.add <uint64_t >(it->price );
@@ -4288,7 +4288,7 @@ void ProtocolGame::sendMarketBrowseOwnHistory(const HistoryMarketOfferList &buyO
4288
4288
msg.add <uint16_t >(counterMap[it->timestamp ]++);
4289
4289
msg.addItemId (it->itemId );
4290
4290
if (Item::items[it->itemId ].upgradeClassification > 0 ) {
4291
- msg.addByte (0 );
4291
+ msg.addByte (1 );
4292
4292
}
4293
4293
msg.add <uint16_t >(it->amount );
4294
4294
msg.add <uint64_t >(it->price );
@@ -4332,7 +4332,7 @@ void ProtocolGame::sendMarketDetail(uint16_t itemId)
4332
4332
const ItemType &it = Item::items[itemId];
4333
4333
4334
4334
if (it.upgradeClassification > 0 ) {
4335
- msg.addByte (0 );
4335
+ msg.addByte (1 );
4336
4336
}
4337
4337
4338
4338
if (it.armor != 0 )
@@ -6494,12 +6494,12 @@ void ProtocolGame::openImbuementWindow(Item *item)
6494
6494
msg.addByte (0xEB );
6495
6495
msg.addItemId (item->getID ());
6496
6496
if (Item::items[item->getID ()].upgradeClassification > 0 ) {
6497
- msg.addByte (0 );
6497
+ msg.addByte (1 );
6498
6498
}
6499
6499
msg.addByte (item->getImbuementSlot ());
6500
6500
6501
6501
// Send imbuement time
6502
- for (uint8_t slotid = 0 ; slotid < item->getImbuementSlot (); slotid++)
6502
+ for (uint8_t slotid = 0 ; slotid < static_cast < uint8_t >( item->getImbuementSlot () ); slotid++)
6503
6503
{
6504
6504
ImbuementInfo imbuementInfo;
6505
6505
if (!item->getImbuementInfo (slotid, &imbuementInfo))
@@ -6853,7 +6853,7 @@ void ProtocolGame::sendItemsPrice()
6853
6853
msg.addItemId (it.first );
6854
6854
if (Item::items[it.first ].upgradeClassification > 0 )
6855
6855
{
6856
- msg.addByte (0 );
6856
+ msg.addByte (1 );
6857
6857
}
6858
6858
msg.add <uint32_t >(it.second );
6859
6859
msg.add <uint32_t >(0 );
0 commit comments