They're smoking cigarettes because it gives the film a noir feel. I suppose if the movie were made today, the computer would keep chirping, "Please, don't smoke on the command deck. There is valuable smoke sensitive equipment in this location. Please, don't smoke on the command deck."