Arduino sketch behaves differently depending on version of Arduino IDE
There are also some warnings in the older IDE that are not present in
  the newer version.


It is a huge mistake to disregards those warnings, especially:


  warning: array subscript is above array bounds


You declared an array int useColor[2]. Its length is 2 and its indices
can be either 0 or 1. Yet you are using useColor[2], which is out of
bounds and likely to corrupt memory.

From the language point of view, this is called undefined behavior,
which means that anything can happen. In particular, it could very
well happen that the program behaves as you expect... which seems to be
the case with IDE 1.0.5. Simply changing the compiler version, or event
the compiler settings, can change the behavior.