For better code legibility, use MEMENTRY_STATE_* instead of plain intege...

...rs anywhere we deal with the mementry state field.

Also using type==Resource::RT_SOUND instead of type==0 in sfxplayer.cpp.