Fixes rare crash on base facility dismantle

Deleting a base facility at x=2 y=3, so roughly where the ok button is
in the confirm deletion box, can occasionally cause a viewMouseOver
event to fire where the facility just was.

Marks the facility as being dismantled
Merge branch 'master' of https://github.com/SupSuper/OpenXcom into basescape_crash
Mark facility for dismantlement after user okays it
Reset selected facility when user dismantles

To avoid mouseover bugs on facility dismantlement, reset the selected
facility and remove it from our stored view.
missed those
already know coordinates
#include <assert.h> added
Merge branch 'master' of https://github.com/SupSuper/OpenXcom
#include <assert.h> added
Xcom security deposit.

charge the first month's rent in advance.
fix ufopaedia tank articles
add ability to define max range on weapons.
apply "flat rate" behaviour to melee weapons (reapers, chryssalids)
Merge pull request #519 from mydmitry/master

include <assert.h> added
datatypes are implicit.
Plug some memory holes.
some small visibility changes.
some small alterations to alien time reservation

don't necessarily reserve TUs for reaction fire if in an "aggro" state
reserve them for moving to cover instead.

(the reasoning behind this will become apparent with the next push)

reaction fire vs aliens is much more common now that they don't reserve
TUs when aggro.
changes to alien fire selection.

aliens will choose various fire modes (as available) according to range,
time units remaining, and time units needed to reach cover.
correct weapon stun damage behaviour.

that which does not kill us makes us sleepy.