mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 16:57:57 +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
|
@ -24,7 +24,7 @@ struct GameScriptInventoryObject
|
|||
{
|
||||
std::string name{};
|
||||
inv_objects slot{ INV_OBJECT_PISTOLS };
|
||||
float yOffset{ 0.0f };
|
||||
short yOffset{ 0 };
|
||||
float scale{ 1.0f };
|
||||
GameScriptRotation rot{};
|
||||
rotflags rotationFlags{ rotflags::INV_ROT_X };
|
||||
|
@ -32,7 +32,7 @@ struct GameScriptInventoryObject
|
|||
item_options action{ item_options::OPT_USE };
|
||||
|
||||
GameScriptInventoryObject() = default;
|
||||
GameScriptInventoryObject(std::string const & a_name, ItemEnumPair a_slot, float a_yOffset, float a_scale, GameScriptRotation const & a_rot, rotflags a_rotationFlags, int a_meshBits, item_options a_actions);
|
||||
GameScriptInventoryObject(std::string const & a_name, ItemEnumPair a_slot, short a_yOffset, float a_scale, GameScriptRotation const & a_rot, rotflags a_rotationFlags, int a_meshBits, item_options a_actions);
|
||||
|
||||
static void Register(sol::state* lua);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue