Fix login

This commit is contained in:
Hondacrx
2024-11-16 23:05:45 -05:00
parent 76b0d747d3
commit 406aa5e445
26 changed files with 151 additions and 76 deletions
@@ -15,7 +15,7 @@ namespace Game.Movement
public class WaypointMovementGenerator : MovementGeneratorMedium<Creature>
{
uint _pathId;
WaypointPath _path;
WaypointPath _path = new();
int _currentNode;
TimeTracker _duration;
@@ -28,8 +28,8 @@ namespace Game.Movement
bool _repeating;
bool _generatePath;
TimeTracker _moveTimer;
TimeTracker _nextMoveTime;
TimeTracker _moveTimer = new();
TimeTracker _nextMoveTime = new();
List<int> _waypointTransitionSplinePoints = new();
int _waypointTransitionSplinePointsIndex;
bool _isReturningToStart;
+2 -2
View File
@@ -27,8 +27,8 @@ namespace Game
var oldMSTime = Time.GetMSTime();
// 0 1 2
SQLResult result = DB.World.Query("SELECT PathId, MoveType, Flags FROM waypoint_path");
// 0 1 2 3
SQLResult result = DB.World.Query("SELECT PathId, MoveType, Flags, Velocity FROM waypoint_path");
if (result.IsEmpty())
{
Log.outInfo(LogFilter.ServerLoading, "Loaded 0 waypoint paths. DB table `waypoint_path` is empty!");