Minor fixes
This commit is contained in:
@@ -106,6 +106,8 @@ SCENARIO("PhysWorld2D", "[PHYSICS2D][PHYSWORLD2D]")
|
||||
unsigned int WALL_COLLISION_ID = 2;
|
||||
unsigned int TRIGGER_COLLISION_ID = 3;
|
||||
|
||||
int statusTriggerCollision = 0;
|
||||
|
||||
Nz::PhysWorld2D world;
|
||||
|
||||
Nz::Rectf characterAABB(0.f, 0.f, 1.f, 1.f);
|
||||
@@ -129,7 +131,6 @@ SCENARIO("PhysWorld2D", "[PHYSICS2D][PHYSWORLD2D]")
|
||||
|
||||
world.Step(0.f);
|
||||
|
||||
int statusTriggerCollision = 0;
|
||||
Nz::PhysWorld2D::Callback characterTriggerCallback;
|
||||
characterTriggerCallback.startCallback = [&](Nz::PhysWorld2D&, Nz::Arbiter2D&, Nz::RigidBody2D&, Nz::RigidBody2D&, void*) -> bool {
|
||||
statusTriggerCollision = statusTriggerCollision | 1 << 0;
|
||||
|
||||
@@ -12,8 +12,6 @@ int main(int argc, char* argv[])
|
||||
Nz::Modules<Ndk::ClientSdk> nazaza;
|
||||
Ndk::ClientApplication app(argc, argv);
|
||||
|
||||
Nz::Log::GetLogger()->EnableStdReplication(false);
|
||||
|
||||
int result = Catch::Session().run(argc, argv);
|
||||
|
||||
return result;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
if is_mode("asan") then
|
||||
add_defines("CATCH_CONFIG_NO_WINDOWS_SEH")
|
||||
add_defines("CATCH_CONFIG_NO_POSIX_SIGNALS")
|
||||
end
|
||||
|
||||
target("NazaraClientUnitTests")
|
||||
set_group("Tests")
|
||||
set_kind("binary")
|
||||
|
||||
Reference in New Issue
Block a user