Yes discipline ... and company policy!!
Besides, if you are forced to work in a pigsty (or if it doesn't bother you), then your work will reflect that. Garbage in, garbage out. Your working environment is just as important to overall performance, as is state-of-the-art technology. And old doesn't have to mean dirty.