Riemann-solver adaptation for gas dynamics