* Use cgame function pointers.
* Cleaned SV_GetTilesFromTileSet up.

* Reduced complexity, const, reduced scope, better variable names.
* Removed unneeded function call.

* Return value was ignored and the function has no side effects.
* Fix bug #3454 (Unit carries out action that is no longer possible)