[CF-Devel] Unused fields in structures

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Thu Feb 12 16:06:07 CST 2004


Some fields in structures are not used anywhere in the server code:

in object (include/object.h):
  * thrownthaco
  * tooltype is used only by command_build() (c_object.c), which is not used 
afaik (and code is between #if 0) and loader.l/.c

in player (include/player.h):
* new_x
* new_y
* known_spell is just set in apply_special, but used nowhere else

in weathermap_t (include/maps.h):
* path (char [HUGE_BUF] !!)
* tmpname
* name

I'd suggest just removing'em, but who knows, maybe they are indeed used 
somewhere not obvious for doxygen (note that I also rebuilt sources without 
those variables, and it worked fine, thanks), so I prefer playing it safe :).

Nicolas 'Ryo'

_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list