Skip to content

Commit

Permalink
Fix disappearing commander designs in campaign.
Browse files Browse the repository at this point in the history
Added commander turret to research results in campaign, now both the commander component and commander turret are available. This
fixes the designs being considered unresearched.

Fixes ticket:4438.
  • Loading branch information
Cyp committed Jul 15, 2016
1 parent 8a929fc commit 5a11426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data/base/stats/research_cam1.json
Expand Up @@ -92,7 +92,8 @@
"researchPoints": 1200,
"researchPower": 37,
"resultComponents": [
"CommandBrain01"
"CommandBrain01",
"CommandTurret1"
],
"statID": "CommandBrain01"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/ivis_opengl/piematrix.cpp
Expand Up @@ -393,7 +393,7 @@ void pie_PerspectiveEnd(void)
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0.0f, (double) pie_GetVideoBufferWidth(), (double) pie_GetVideoBufferHeight(), 0.0f, 1.0f, -1.0f);
glOrtho(0.0f, std::max(pie_GetVideoBufferWidth(), 1), std::max(pie_GetVideoBufferHeight(), 1), 0.0f, 1.0f, -1.0f);
glMatrixMode(GL_MODELVIEW);
}

Expand Down

0 comments on commit 5a11426

Please sign in to comment.