Core/Movement: updated smartAI waypoint support to use the new smooth transition field as well

This commit is contained in:
Ovahlord
2021-07-16 16:56:35 +02:00
parent 64a2487457
commit b236bd39df
3 changed files with 12 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
ALTER TABLE `waypoints`
ADD COLUMN `smoothTransition` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `delay`;
UPDATE `waypoints` SET `smoothTransition`= 1 WHERE `delay` < 0;
UPDATE `waypoints` SET `delay`= 0 WHERE `delay` < 0;
ALTER TABLE `waypoints`
MODIFY COLUMN `delay` int UNSIGNED NOT NULL DEFAULT 0 AFTER `velocity`;