Skip to content

Commit

Permalink
Fix: DROID_PERSON model display size
Browse files Browse the repository at this point in the history
Now that the models are fixed, remove the hard-coded hack
  • Loading branch information
past-due committed Nov 18, 2023
1 parent 957c0d8 commit 1072903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ static bool displayCompObj(DROID *psDroid, bool bButton, const glm::mat4& modelM
iIMDShape *strImd = psShapeBody;
if (psDroid->droidType == DROID_PERSON)
{
modifiedModelMatrix *= glm::scale(glm::vec3(.75f)); // FIXME - hideous....!!!!
// previously, used to scale the model by 0.75 - no longer needed with the fixed models though...
}
if (strImd->objanimpie[psDroid->animationEvent])
{
Expand Down
2 changes: 1 addition & 1 deletion src/effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static void renderDroidDeathAnimationEffect(const EFFECT *psEffect, const glm::m
// If original (psDroid->droidType == DROID_PERSON)
if (psEffect->type == DROID_ANIMEVENT_DYING_NORMAL_ST)
{
modelMatrix *= glm::scale(glm::vec3(.75f)); // FIXME - hideous....!!!!
// previously, used to scale the model by 0.75 - no longer needed with the fixed models though...
}

PIELIGHT brightness = pal_SetBrightness(255); // NOTE: brightness is not preserved from the original droid that died - FIXME: ?
Expand Down

0 comments on commit 1072903

Please sign in to comment.