Skip to content

Commit

Permalink
Minor fix to enemies counter
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor251093 committed Feb 5, 2025
1 parent 9392639 commit 3639b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/PluginKingdomHeartsReCoded_GPU_OpenGL_shaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ ivec4 getTopScreenColor(float xpos, float ypos, int index)
// enemies counter (part 1)
if (texPosition3d.x >= enemiesLeftMargin &&
texPosition3d.x < enemiesLeftMargin + bottomEnemiesXMargin &&
texPosition3d.x < enemiesLeftMargin + enemiesXMargin &&
texPosition3d.y >= (192.0*iuTexScale - enemiesHeight - enemiesBottomMargin) &&
texPosition3d.y < (192.0*iuTexScale - enemiesBottomMargin)) {
Expand All @@ -1095,7 +1095,7 @@ ivec4 getTopScreenColor(float xpos, float ypos, int index)
}
// enemies counter (part 2)
if (texPosition3d.x >= enemiesLeftMargin + enemiesWidth - bottomEnemiesXMargin/1.5 &&
if (texPosition3d.x >= enemiesLeftMargin + enemiesWidth - enemiesXMargin &&
texPosition3d.x < enemiesLeftMargin + enemiesWidth &&
texPosition3d.y >= (192.0*iuTexScale - enemiesHeight - enemiesBottomMargin) &&
texPosition3d.y < (192.0*iuTexScale - enemiesBottomMargin)) {
Expand Down

0 comments on commit 3639b68

Please sign in to comment.