File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
ServerCodeExciserTest/Problems/Common Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,24 @@ class UAlreadyHasGuardsTest
1616 int ButNotThis = 0;
1717 ButNotThis++;
1818 }
19+
20+ void Test2()
21+ {
22+ #ifdef WITH_SERVER
23+ check(System::IsServer());
24+ int ThisMustBeGuarded = 0;
25+ ThisMustBeGuarded++;
26+ #endif // WITH_SERVER
27+ }
28+
29+ UFUNCTION(BlueprintOverride)
30+ void Test3(float DeltaSeconds)
31+ {
32+ FTraceScope TraceScope(n"Test3");
33+ check(System::IsServer());
34+
35+ #ifdef WITH_SERVER
36+ GroundContactHitResults.Empty();
37+ #endif
38+ }
1939};
Original file line number Diff line number Diff line change @@ -16,4 +16,24 @@ class UAlreadyHasGuardsTest
1616 int ButNotThis = 0;
1717 ButNotThis++;
1818 }
19+
20+ void Test2()
21+ {
22+ #ifdef WITH_SERVER
23+ check(System::IsServer());
24+ int ThisMustBeGuarded = 0;
25+ ThisMustBeGuarded++;
26+ #endif // WITH_SERVER
27+ }
28+
29+ UFUNCTION(BlueprintOverride)
30+ void Tick(float DeltaSeconds)
31+ {
32+ FTraceScope TraceScope(n"Tick\u00B0");
33+ check(System::IsServer());
34+
35+ #ifdef WITH_SERVER
36+ GroundContactHitResults.Empty();
37+ #endif
38+ }
1939};
You can’t perform that action at this time.
0 commit comments