In your pacman code you c_move looks like this.

c_move(my, player_speed, IGNORE_PASSABLE, GLIDE);

shouldn´t it be like this?

c_move(my, player_speed, nullvector, IGNORE_PASSABLE | GLIDE);

At all i think your code need some improvements.