mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
Rebase resync
This commit is contained in:
parent
a0797532e8
commit
1997c1e903
3106 changed files with 11118 additions and 627576 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include "MoveSpline.h"
|
||||
#include <sstream>
|
||||
#include "Log.h"
|
||||
#include "Unit.h"
|
||||
|
||||
namespace Movement
|
||||
{
|
||||
|
|
@ -195,12 +196,12 @@ namespace Movement
|
|||
|
||||
/// ============================================================================================
|
||||
|
||||
bool MoveSplineInitArgs::Validate() const
|
||||
bool MoveSplineInitArgs::Validate(Unit* unit) const
|
||||
{
|
||||
#define CHECK(exp) \
|
||||
if (!(exp))\
|
||||
{\
|
||||
sLog.outError("MoveSplineInitArgs::Validate: expression '%s' failed", #exp);\
|
||||
sLog.outError("MoveSplineInitArgs::Validate: expression '%s' failed for %s", #exp, unit->GetGuidStr().c_str());\
|
||||
return false;\
|
||||
}
|
||||
CHECK(path.size() > 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue