Update msg.c
Update msg.h
Fixed dead pedestrian bug
Fixed bug that always unlinked the message queues
Merge pull request #1 from ravngr/integrated

Integrated