NEW YORK — Carmelo Anthony and Kristaps Porzingis each scored 24 points, and the New York Knicks rolled after a halftime lineup change and beat the short-handed Dallas Mavericks 93-77 on Monday night.

The Knicks benched Joakim Noah, their $72 million free-agent signing, starting guard Justin Holiday and moving Porzingis to center in a small lineup. They responded by scoring 31 points in the third quarter after managing just 36 in an ugly first half.

Anthony scored 17 in the third quarter and 20 in the second half after shooting 1 for 6 in the first half. Porzingis finished with 11 rebounds.

Harrison Barnes scored 20 points and J.J. Barea had 17 for the Mavericks, who are still without Dirk Nowitzki and Deron Williams.

PACERS 88, MAGIC 69: C.J. Miles made four 3-pointers and scored 16 points, and the Pacers spoiled Frank Vogel’s return to Indiana with a victory over Orlando in Indianapolis.

Vogel coached the Pacers for more than five seasons before he was let go in May. He was quickly scooped up by Orlando, and it looks as if he has plenty of work to do with the Magic.

Paul George had 13 points, six rebounds and five assists for Indiana, which pulled away in the second half. Monta Ellis also scored 13 points, and Jeff Teague finished with 11.

PISTONS 104, THUNDER 88: Tobias Harris scored 22 points, Aron Baynes added 20 points and eight rebounds and short-handed Detroit beat Oklahoma City in Auburn Hills, Michigan.

The Pistons (6-5) improved to 5-0 at home despite being without their two best players. Reggie Jackson hasn’t played this season due to knee tendinitis, and Andre Drummond was sidelined with a sprained ankle.

Russell Westbrook had 33 points, 15 rebounds and eight assists for Oklahoma City (6-5), which has dropped four in a row. Victor Oladipo finished with nine points, but he was the only other starter to score more than four.

ROCKETS 115, 76ERS 88: James Harden scored 23 of his 33 points in the first quarter, and Houston cruised to a win over Philadelphia in Houston.

Harden, who posted a triple-double in his last two games, added nine assists and seven rebounds.

The Rockets had a three-point lead with five minutes left in the first quarter when Harden took over, scoring all of Houston’s points in a 17-9 run to make it 35-24. Harden, who was named Western Conference Player of the Week on Monday, made a pair of 3s, all three shots after being fouled on a 3-pointer and a nifty reverse layup in that span.

SPURS 94, HEAT 90: Kawhi Leonard had 24 points and 12 rebounds, LaMarcus Aldridge added 18 points and San Antonio held on to beat Miami in San Antonio.

Dion Waiters, who tormented San Antonio in the playoffs last season while with Oklahoma City, had 27 points for Miami.