Fix sector tags being signed in Lua
This commit is contained in:
parent
7133c703b4
commit
75d0e70236
|
@ -583,7 +583,18 @@ static int sector_get(lua_State *L)
|
||||||
lua_pushinteger(L, sector->special);
|
lua_pushinteger(L, sector->special);
|
||||||
return 1;
|
return 1;
|
||||||
case sector_tag:
|
case sector_tag:
|
||||||
lua_pushinteger(L, Tag_FGet(§or->tags));
|
// HELLO
|
||||||
|
// THIS IS LJ SONIC
|
||||||
|
// HOW IS YOUR DAY?
|
||||||
|
// BY THE WAY WHEN 2.3 OR 3.0 OR 4.0 OR SRB3 OR SRB4 OR WHATEVER IS OUT
|
||||||
|
// YOU SHOULD REMEMBER TO CHANGE THIS SO IT ALWAYS RETURNS A UNSIGNED VALUE
|
||||||
|
// HAVE A NICE DAY
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// you are ugly
|
||||||
|
lua_pushinteger(L, (UINT16)Tag_FGet(§or->tags));
|
||||||
return 1;
|
return 1;
|
||||||
case sector_taglist:
|
case sector_taglist:
|
||||||
LUA_PushUserdata(L, §or->tags, META_SECTORTAGLIST);
|
LUA_PushUserdata(L, §or->tags, META_SECTORTAGLIST);
|
||||||
|
@ -828,6 +839,17 @@ static int line_get(lua_State *L)
|
||||||
lua_pushinteger(L, line->special);
|
lua_pushinteger(L, line->special);
|
||||||
return 1;
|
return 1;
|
||||||
case line_tag:
|
case line_tag:
|
||||||
|
// HELLO
|
||||||
|
// THIS IS LJ SONIC
|
||||||
|
// HOW IS YOUR DAY?
|
||||||
|
// BY THE WAY WHEN 2.3 OR 3.0 OR 4.0 OR SRB3 OR SRB4 OR WHATEVER IS OUT
|
||||||
|
// YOU SHOULD REMEMBER TO CHANGE THIS SO IT ALWAYS RETURNS A UNSIGNED VALUE
|
||||||
|
// HAVE A NICE DAY
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// you are ugly
|
||||||
lua_pushinteger(L, Tag_FGet(&line->tags));
|
lua_pushinteger(L, Tag_FGet(&line->tags));
|
||||||
return 1;
|
return 1;
|
||||||
case line_taglist:
|
case line_taglist:
|
||||||
|
|
Loading…
Reference in New Issue