mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
Fixed some GameFlowScript.cpp warnings:
Remove SkyVelocity1 and SkyVelocity2 - they weren't being used. Change a loop var to a size_t. Make GameScriptInventoryObject.yOffset a short.
This commit is contained in:
parent
2039df5a27
commit
10419d15a8
5 changed files with 4 additions and 10 deletions
|
@ -241,12 +241,10 @@ bool GameFlow::DoGameflow()
|
|||
SkyColor1.r = level->Layer1.R;
|
||||
SkyColor1.g = level->Layer1.G;
|
||||
SkyColor1.b = level->Layer1.B;
|
||||
SkyVelocity1 = level->Layer1.CloudSpeed;
|
||||
|
||||
SkyColor2.r = level->Layer2.R;
|
||||
SkyColor2.g = level->Layer2.G;
|
||||
SkyColor2.b = level->Layer2.B;
|
||||
SkyVelocity2 = level->Layer2.CloudSpeed;
|
||||
}
|
||||
|
||||
if (level->Storm)
|
||||
|
@ -269,7 +267,7 @@ bool GameFlow::DoGameflow()
|
|||
else
|
||||
{
|
||||
// Prepare inventory objects table
|
||||
for (int i = 0; i < level->InventoryObjects.size(); i++)
|
||||
for (size_t i = 0; i < level->InventoryObjects.size(); i++)
|
||||
{
|
||||
GameScriptInventoryObject* obj = &level->InventoryObjects[i];
|
||||
if (obj->slot >= 0 && obj->slot < INVENTORY_TABLE_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue