mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-14 23:07:48 -04:00
[apathy][PATCH] Cast jboolean to bool
This commit is contained in:
@@ -330,7 +330,7 @@ void JNICALL ScriptMethodsNewbieTutorialNamespace::newbieTutorialSendStartingLoc
|
||||
|
||||
typedef std::pair<std::string, bool> Payload;
|
||||
typedef MessageQueueGenericValueType<Payload> MessageType;
|
||||
MessageType * const message = new MessageType (Payload (name, result));
|
||||
MessageType * const message = new MessageType (Payload (name, (bool)result));
|
||||
sendMessageToPlayer (*player, message, CM_startingLocationSelectionResult);
|
||||
}
|
||||
|
||||
|
||||
@@ -407,7 +407,7 @@ jboolean JNICALL ScriptMethodsPlayerAccountNamespace::setCompletedTutorial(JNIEn
|
||||
const unsigned int stationId = playerObject->getClient()->getStationId();
|
||||
|
||||
LOG("CustomerService", ("Setting tutorial bit to %s for stationId %i\n", (value) ? "true" : "false", stationId));
|
||||
GenericValueTypeMessage< std::pair<unsigned int, bool> > const updateTutorial("LoginToggleCompletedTutorial", std::pair<unsigned int, bool>(stationId, value));
|
||||
GenericValueTypeMessage< std::pair<unsigned int, bool> > const updateTutorial("LoginToggleCompletedTutorial", std::pair<unsigned int, bool>(stationId, (bool)value));
|
||||
GameServer::getInstance().sendToCentralServer(updateTutorial);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user