Being/staying motivated is like half the battle. Once more than half of the team has stopped caring the project is essentially dead. You should get away as soon as possible. In my experience as long as you care about the stuff are doing you are better than the bottom half of developers.