CleverRaven/Cataclysm-DDA — pull request #6091 by BevapDin (2014-02-13 14:21:48+00:00)
Title: Allow shooting npcs

Made a new PR because the other PR triggered a bug I can't reproduce and therefor not fix.
This PR makes nearly the same but without changing the npc_at function. It allows shotting npc and that's the important thing.

- Add `game::critter_at` to get any kind of critter, be it a monster, a npc or the player, this should make many things easier, instead of
```
if(there a monster) {
do something
} else if(there is a npc) {
do something
} else if(there is the player) {
do something
}
```
one can write
```
Creature *critter = critter_at();
if(critter != NULL) {
do something
}
```
The function is currently only used in the projectile attack code, because the other code uses different functions for npc and monsters, those have not been ported to Creature.

Bug report here http://smf.cataclysmdda.com/index.php?topic=5324 should be fixed by this.

Fixes #6026