Talk:Sector

From ZDoom Wiki
Jump to navigation Jump to search

Format

I am talking about the format, and it is the same thing as what the engine converts it to, because that's actually how the engine reads it. Otherwise, there's no differences between any type, you could just as well say they're all strings of chars. I changed that after a comment on the Doomworld forum saying it was possible to set negative light level values -- so if it's possible to do so, then the light level value must be signed, obviously. (And for the record, ZDoom uses a single byte for the light level value. I'm talking about the original specs, here.) --Gez 15:49, 23 May 2009 (UTC)

It's not the same thing, or I just don't understand you. If the quantity in the map format (and I mean that which is listed in the Unofficial DOOM Specs) would be a fixed_t, the actual sector height would live in the upper 16-bits, short of there being none because the field itself is only 16 bits. —j.eng 16:22, 23 May 2009 (UTC)
I was more talking about you reverting the shorts to unsigned shorts. --Gez 17:04, 23 May 2009 (UTC)
No unsigned in there, it expressly was (in the article) and is (in the map) a signed quantity. —j.eng 18:16, 23 May 2009 (UTC)

See this, lines 38, 44, 50. That's what I was talking about. --Gez 19:43, 23 May 2009 (UTC)

Ok. Even if negative light has an assigned meaning, do negative values for Sector Flags and Tag make sense? —j.eng 20:12, 23 May 2009 (UTC)