Refactor region margin functions

There was no need for two separate functions for calculating region
margins in isometric and top-down modes, so managed to simplify.

Also renamed some variables to be (hopefully) more clear.