summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/StarshipAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/StarshipAI.cpp')
-rw-r--r--StarsEx/StarshipAI.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/StarsEx/StarshipAI.cpp b/StarsEx/StarshipAI.cpp
index 8b10a49..1de816e 100644
--- a/StarsEx/StarshipAI.cpp
+++ b/StarsEx/StarshipAI.cpp
@@ -12,6 +12,9 @@
*/
#include "StarshipAI.h"
+
+#include <cstdint>
+
#include "StarshipTacticalAI.h"
#include "Ship.h"
#include "ShipDesign.h"
@@ -27,7 +30,6 @@
#include "FlightComp.h"
#include "Farcaster.h"
#include "QuantumDrive.h"
-
#include "Clock.h"
#include "ContentBundle.h"
#include "Random.h"
@@ -65,7 +67,7 @@ StarshipAI::StarshipAI(SimObject* s)
tactical = new StarshipTacticalAI(this);
}
- sub_select_time = Clock::GetInstance()->GameTime() + (DWORD) Random(0, 2000);
+ sub_select_time = Clock::GetInstance()->GameTime() + static_cast<std::uint32_t>(Random(0, 2000));
point_defense_time = sub_select_time;
}