mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-07-06 22:42:19 +08:00
Little improvements
steam_user_stats: Use the value stored in the JSON object. steal_inventory: use 'empty' that is guaranteed to be constant in time.
This commit is contained in:
@ -828,7 +828,7 @@ bool SubmitUpdateProperties( SteamInventoryUpdateHandle_t handle, SteamInventory
|
|||||||
|
|
||||||
void RunCallbacks()
|
void RunCallbacks()
|
||||||
{
|
{
|
||||||
if (call_definition_update || inventory_requests.size()) {
|
if (call_definition_update || !inventory_requests.empty()) {
|
||||||
if (!item_definitions_loaded) {
|
if (!item_definitions_loaded) {
|
||||||
read_items_db();
|
read_items_db();
|
||||||
item_definitions_loaded = true;
|
item_definitions_loaded = true;
|
||||||
@ -842,7 +842,7 @@ void RunCallbacks()
|
|||||||
call_definition_update = false;
|
call_definition_update = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inventory_requests.size() && !inventory_loaded) {
|
if (!inventory_requests.empty() && !inventory_loaded) {
|
||||||
read_inventory_db();
|
read_inventory_db();
|
||||||
inventory_loaded = true;
|
inventory_loaded = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user