mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-17 04:48:13 +00:00
Updated to new API
This commit is contained in:
@@ -1081,11 +1081,7 @@ Cinema::Recording::PlayEffectRecord::PlayEffectRecord(const std::string& effect)
|
||||
}
|
||||
|
||||
void Cinema::Recording::PlayEffectRecord::Act(Entity* actor) {
|
||||
int32_t effectID = 0;
|
||||
|
||||
if (!GeneralUtils::TryParse(effect, effectID)) {
|
||||
return;
|
||||
}
|
||||
int32_t effectID = GeneralUtils::TryParse<int32_t>(effect).value_or(0);
|
||||
|
||||
GameMessages::SendPlayFXEffect(
|
||||
actor->GetObjectID(),
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "Player.h"
|
||||
#include "Game.h"
|
||||
#include "EntityManager.h"
|
||||
#include "tinyxml2.h"
|
||||
|
Reference in New Issue
Block a user