View Single Post
Old January 31, 2020, 15:07   #7
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
I would store player->depth (in memory) as a byte, but load it from savefiles as a s16b while asserting that it does not make use of more than 8 bits' worth of data. That seems like the best compromise to me: no broken savefiles, no compiler warnings, but a fairly well-documented workaround for a historical issue.
Derakon is offline   Reply With Quote