Some cleanup items

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
Post Reply
User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Some cleanup items

Post by Gangrenous » Sun Dec 31, 2017 3:47 pm

Be sure to check behind me, I am a rookie.

AltAdvancement.cpp around line 245

Before

Code: Select all

for (int x = 0; x < TreeNodeList.size(); x++)
After

Code: Select all

for (uint x = 0; x < TreeNodeList.size(); x++)
Commands.cpp around 5706

Code: Select all

//delete this is unused
int64 value = 0;
Luafunctions.cpp around line 6409

Both of these look unused

Code: Select all

//int32 duration = lua_interface->GetInt32Value(state, 3);
float vertical = lua_interface->GetFloatValue(state, 4);
float horizontal = lua_interface->GetFloatValue(state, 5);
bool use_heading = lua_interface->GetInt8Value(state, 6) == 1 ? true : false;
//LuaSpell* spell = lua_interface->GetCurrentSpell(state);
PlayerGroups.cpp around 284

This looks unused

Code: Select all

int32 group_size = m_groups[leader->GetGroupMemberInfo()->group_id]->Size();
Log.cpp around 310

This should be long unsigned

Code: Select all

fprintf(stderr, "%s: %u: Unable to allocate %lu bytes\n", __FUNCTION__, __LINE__, sizeof(logq_t));
Resident Dirty Hippy

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Some cleanup items

Post by Gangrenous » Sun Dec 31, 2017 3:48 pm

MiscFunctions.cpp around line 742

Should be long unsigned

Code: Select all

fprintf(stderr, "%s: %u: Unable to allocate %lu bytes\n", __FUNCTION__, __LINE__, size);
Resident Dirty Hippy

tyrbo
Team Member
Posts: 271
Joined: Thu Feb 18, 2016 12:33 pm

Re: Some cleanup items

Post by tyrbo » Sun Dec 31, 2017 4:00 pm

The section with the vertical stuff is from the Knockback function, right?
It's being used in my copy of the code, but maybe I've changed it.

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Some cleanup items

Post by Gangrenous » Mon Jan 01, 2018 3:13 am

Yep
Resident Dirty Hippy

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests