Skip to content

Commit

Permalink
Fixed mon_info() to work with the new monster view ranges
Browse files Browse the repository at this point in the history
Only color compas monster direction red if a monster spotted you
  • Loading branch information
OzoneH3 committed Mar 6, 2013
1 parent 81e5513 commit 25d88a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3405,7 +3405,8 @@ void game::mon_info()
for (int i = 0; i < z.size(); i++) {
if (u_see(&(z[i]), buff)) {
bool mon_dangerous = false;
if (z[i].attitude(&u) == MATT_ATTACK || z[i].attitude(&u) == MATT_FOLLOW) {
int j;
if (sees_u(z[i].posx, z[i].posy, j) && (z[i].attitude(&u) == MATT_ATTACK || z[i].attitude(&u) == MATT_FOLLOW)) {
mon_dangerous = true;

if (rl_dist(u.posx, u.posy, z[i].posx, z[i].posy) <= iProxyDist)
Expand Down

0 comments on commit 25d88a0

Please sign in to comment.