&& (y >= p.getY() + m_mapMatrix.getCurrentMap().getYOffset() && y <= p.getY() + 40 + m_mapMatrix.getCurrentMap().getYOffset())) {
// Brings up a popup menu with player options
if (!p.isOurPlayer()){
if (getDisplay().containsChild(m_playerDialog))
getDisplay().remove(m_playerDialog);
m_playerDialog = new PlayerPopupDialog(p.getUsername());
m_playerDialog.setLocation(x, y);
getDisplay().add(m_playerDialog);
}
}
}