Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -286,9 +286,11 @@ void EntityScriptServer::checkAndCallPreload(const EntityItemID& entityID, const · 285 unmodified lines | |||
| 286 | bool notRunning = !_entitiesScriptEngine->getEntityScriptDetails(entityID, details); | 286 | bool notRunning = !_entitiesScriptEngine->getEntityScriptDetails(entityID, details); |
| 287 | if (entity && (reload || notRunning || details.scriptText != entity->getServerScripts())) { | 287 | if (entity && (reload || notRunning || details.scriptText != entity->getServerScripts())) { |
| 288 | QString scriptUrl = entity->getServerScripts(); | 288 | QString scriptUrl = entity->getServerScripts(); |
| 289 | scriptUrl = ResourceManager::normalizeURL(scriptUrl); | 289 | if (!scriptUrl.isEmpty()) { |
| 290 | qDebug() << "Loading entity server script" << scriptUrl << "for" << entityID; | 290 | scriptUrl = ResourceManager::normalizeURL(scriptUrl); |
| 291 | ScriptEngine::loadEntityScript(_entitiesScriptEngine, entityID, scriptUrl, reload); | 291 | qDebug() << "Loading entity server script" << scriptUrl << "for" << entityID; |
| 292 | ScriptEngine::loadEntityScript(_entitiesScriptEngine, entityID, scriptUrl, reload); | ||
| 293 | } | ||
| 292 | } | 294 | } |
| 293 | } | 295 | } |
| 294 | } | 296 | } |