1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 11:07:45 +00:00
This commit is contained in:
goaaats 2017-12-04 17:13:17 +01:00
parent a35b934939
commit 1b09369505
2 changed files with 4 additions and 4 deletions

View file

@ -397,14 +397,14 @@ void Core::DebugCommandHandler::add( char * data, Core::Entity::PlayerPtr pPlaye
pPlayer->queuePacket(controlPacket);*/ pPlayer->queuePacket(controlPacket);*/
} }
else if (subCommand == "unlock") else if ( subCommand == "unlock" )
{ {
int32_t id; int32_t id;
sscanf( params.c_str(), "%d", &id ); sscanf( params.c_str(), "%d", &id );
pPlayer->learnAction( id ); pPlayer->learnAction( id );
} }
else if (subCommand == "enablecompanion") else if ( subCommand == "enablecompanion" )
{ {
pPlayer->learnAction( 17 ); pPlayer->learnAction( 17 );
} }
@ -440,7 +440,7 @@ void Core::DebugCommandHandler::get( char * data, Core::Entity::PlayerPtr pPlaye
"subCommand " + subCommand + " params: " + params ); "subCommand " + subCommand + " params: " + params );
if( ( subCommand == "pos" ) ) if( subCommand == "pos" )
{ {
int16_t map_id = g_exdData.m_zoneInfoMap[pPlayer->getCurrentZone()->getId()].map_id; int16_t map_id = g_exdData.m_zoneInfoMap[pPlayer->getCurrentZone()->getId()].map_id;

View file

@ -301,7 +301,7 @@ void Core::Network::GameConnection::gm1Handler( const Packets::GamePacket& inPac
} }
case GmCommand::Mount: case GmCommand::Mount:
{ {
if (param2 == 0) if ( param2 == 0 )
{ {
for (uint8_t i = 0; i < 255; i++) for (uint8_t i = 0; i < 255; i++)
targetActor->getAsPlayer()->learnMount( i ); targetActor->getAsPlayer()->learnMount( i );