tweaked rts.cpp again