Eric Gay, Associated Press
Pistons forward Rasheed Wallace reaches for a rebound during the fourth quarter of Thursday night's 90-80 victory over the Spurs.

SAN ANTONIO — The Detroit Pistons were facing a game that, if lost, would have given them their longest losing streak of the season.

Even if that had happened — and it didn't — Rasheed Wallace wasn't going to let it get him down.

"We could lose five or six games in a row, but we're the type of team, we don't hang our heads and walk around moping," said Wallace, who had 23 points and 15 rebounds to carry Detroit to a 90-80 victory Thursday night over the San Antonio Spurs.

Detroit snapped a two-game losing streak, and handed the Spurs their second loss in a row and third of the season at home.

The Pistons bounced back from a loss in Dallas on Wednesday night, keeping the Spurs at bay beginning with a burst late in the first quarter and eventually going up by as many as 20 points.

Richard Hamilton scored 18 points for Detroit, and Tayshaun Prince added 17.

Tim Duncan had 24 points and 15 rebounds for San Antonio, and Tony Parker added 12 points as he struggled from the field, going 4-of-13.

KINGS 116, MAGIC 113: At Sacramento, John Salmons had 28 points, 11 rebounds and seven assists to help Sacramento rally late in the fourth quarter to defeat Memphis. Down by 10 points midway through the fourth quarter, the Kings got back in the game with a 10-2 run and pulled ahead behind the clutch play of Salmons, Francisco Garcia and Brad Miller, who had 22 points, 10 rebounds and five assists. Rudy Gay scored 31 points for Memphis, which lost its second straight and has dropped 18 consecutive games in Sacramento going back to 1998 when they played in Vancouver.