Skip to content

Commit

Permalink
Fix compilation with Visual Studio 17.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jun 29, 2024
1 parent 14c4692 commit b5496f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xrGame/CustomRocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ void CCustomRocket::create_physic_shell()
// Rocket specific functions
//////////////////////////////////////////////////////////////////////////

#pragma warning(push)

// XXX: maybe update ODE to a newer version
// The warning happens on line 241: l_pMYU->last_pos[0] != -dInfinity
#pragma warning(disable : 4756)

void CCustomRocket::ObjectContactCallback(
bool& do_colide, bool bo1, dContact& c, SGameMtl* material_1, SGameMtl* material_2)
{
Expand Down Expand Up @@ -291,6 +297,7 @@ void CCustomRocket::ObjectContactCallback(
{
}
}
#pragma warning(pop)

void CCustomRocket::Load(LPCSTR section)
{
Expand Down
7 changes: 7 additions & 0 deletions src/xrPhysics/tri-colliderknoopc/dcTriangle.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#pragma once

// XXX: maybe update ODE to a newer version
// The warning happens on lines 23-24 when assigning to -dInfinity
#pragma warning(disable : 4756)

struct Triangle
{
// dReal* v0;
Expand All @@ -20,3 +25,5 @@ struct Triangle
#endif
}
};

#pragma warning(pop)

0 comments on commit b5496f1

Please sign in to comment.