There are a lot of things there that are slightly different from the book, but they are true to the spirit to the book.
I hate this quote from David Heyman as he explains the changes in Harry Potter and the Deathly Hallows Part 2! And they were talking about this:
“We wanted to change a bit where Snape dies. In the book, he dies on the Shrieking Shack, and we wanted to get him out from, not a conventional interior, but from that kind of box, to do it in a more dramatic atmosphere. We asked J.K. if she agreed for that to happen in there, because we hadn’t really seen it before. We made a crystal house, and you can see what happens in the boat house from there – Are you listening Harry? -, but also the school is in flames…and she loved it. Besides, it’s a very romantic place to die. Snape dies in a extremely good way, I gotta say.”