Skip to content

Commit

Permalink
# - addressed a type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
en-software committed Feb 24, 2024
1 parent 17419de commit 2069a64
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions PhysicsDebugDraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
void PhysicsDebugDraw::DrawPolygon(const b2Vec2* vertices, int32 vertexCount, const b2Color& color)
{
std::vector<SDL_FPoint> points;
points.reserve(vertexCount + 1);
points.reserve(static_cast<std::vector<SDL_FPoint, std::allocator<SDL_FPoint>>::size_type>(vertexCount) + 1);
for (int32 i = 0; i < vertexCount; ++i)
{
SDL_FPoint point
Expand Down Expand Up @@ -40,7 +40,7 @@ void PhysicsDebugDraw::DrawPolygon(const b2Vec2* vertices, int32 vertexCount, co
void PhysicsDebugDraw::DrawSolidPolygon(const b2Vec2* vertices, int32 vertexCount, const b2Color& color)
{
std::vector<SDL_FPoint> points;
points.reserve(vertexCount + 1);
points.reserve(static_cast<std::vector<SDL_FPoint, std::allocator<SDL_FPoint>>::size_type>(vertexCount) + 1);
for (int32 i = 0; i < vertexCount; ++i)
{
SDL_FPoint point
Expand Down Expand Up @@ -75,7 +75,7 @@ void PhysicsDebugDraw::DrawCircle(const b2Vec2& center, float radius, const b2Co
const int radiusR = static_cast<int>(radius * static_cast<float>(GRIDUNIT));
const int r2 = radiusR * 2;

SDL_Point octants[8];
SDL_Point octants[8]{};
int x = radiusR - 1;
int dX = 1;
int dev = (dX - r2);
Expand Down Expand Up @@ -133,7 +133,7 @@ void PhysicsDebugDraw::DrawSolidCircle(const b2Vec2& center, float radius, const
const int radiusR = static_cast<int>(radius * static_cast<float>(GRIDUNIT));
const int r2 = radiusR * 2;

SDL_Point octants[8];
SDL_Point octants[8]{};
int x = radiusR - 1;
int dX = 1;
int dev = (dX - r2);
Expand Down
2 changes: 1 addition & 1 deletion blooDot.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
<ClCompile Include="boydsa.cpp" />
<ClCompile Include="collision.cpp" />
<ClCompile Include="dialogcontrols.cpp" />
<ClCompile Include="ding.cpp" />
<ClCompile Include="ding.hc" />
<ClCompile Include="dingsheet.cpp" />
<ClCompile Include="drawing.cpp" />
<ClCompile Include="enxassy.cpp" />
Expand Down
2 changes: 1 addition & 1 deletion blooDot.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
<ClCompile Include="region-banner.cpp">
<Filter>_Source Files\ui</Filter>
</ClCompile>
<ClCompile Include="ding.cpp">
<ClCompile Include="ding.hc">
<Filter>_Source Files\game</Filter>
</ClCompile>
<ClCompile Include="dingsheet.cpp">
Expand Down
File renamed without changes.

0 comments on commit 2069a64

Please sign in to comment.