So clearly it's a const char, but I have to use a bool so it can lookup the name. When compiling, though, I get this error:
obj_win32/edge/p_mobj.o -c src/p_mobj.cc
src/p_mobj.cc: In function 'void P_ZMovement(mobj_t*, const region_properties_t*
)':
src/p_mobj.cc:1214:83: error: cannot convert 'bool' to 'const char*' for argumen
t '2' to 'int strcmp(const char*, const char*)'
if (strcmp("FWATER1", W_ImageGetName(mo->subsector->sector->floor.image) !
= 0))
^
Maybe I'm not writing this correctly? Any help is appreciated!
While it compiles great, it seems any surface the player steps on with floor.image will spawn the sound effect.
So it doesn't appear that it's working properly, is it because I need two or more string compares? So let's just assume there are a bunch of floor.images, and it only needs to detect if the player steps on "FWATER1", then it plays the sound.