This is not a black and white issue. If I were playing a game and my team won, I would be happy but countless others wouldn't be. However, you have to put that in perspective and consider the way in which your happiness would hurt others.
One philosophy is that the right thing results in the greatest benefit (and therefore happiness) for the greatest number. In that case you should sacrifice your own happiness for the greater good.