raze/polymer/eduke32/source/lunatic
hendricks266 c5044b3ecd Add orientation bit 2048, enumerated as ROTATESPRITE_FULL16, which is a courtesy provided by the engine for the purpose of the game to internally force use of full 32-bit coordinates. With this bit set, all CON screen drawing commands can use rotatesprite16-like coordinates.
While the functionality was already internally in place for gametext as one of two hacks using ROTATESPRITE_MAX (the other still used by minitext_() to align with the statusbar) we must codify a bit in the engine for safe external use. (Otherwise, ROTATESPRITE_MAX could/would theoretically increase and leave modders high and dry.)

(Dev note: In G_DrawTXDigiNumZ(), ROTATESPRITE_MAX was used to bitshift the value used to calculate digit spacing for no reason I can ascertain other than to introduce rounding errors into the zoom/textscale calculations. It was never used anywhere, so I removed it.)

Bonus: The scaling code for digitalnumberz and gametextz has been modified so that the spacing is no longer affected by rounding errors. Try animating the zoom value and compare how the text used to jump but now does not.

git-svn-id: https://svn.eduke32.com/eduke32@3608 1a8010ca-5511-0410-912e-c29ae57300e0
2013-03-25 04:31:58 +00:00
..
m32 Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
test Lunatic: actor usertypes from CON, set SFLAGs as 2nd gameactor() arg in Lua. 2013-03-24 18:53:28 +00:00
bcarray.lua Lunatic: make some variables local, fix some bugs found using listglobals.sh. 2013-03-24 18:53:14 +00:00
bcheck.lua Lunatic: make some variables local, fix some bugs found using listglobals.sh. 2013-03-24 18:53:14 +00:00
bigytiles.lua Fix build.lua's loadarts(), add bigytiles.lua. 2012-12-23 14:00:00 +00:00
bitar.lua Lunatic: prefer to use ctype objects instead of C type strings. 2013-01-26 17:07:53 +00:00
bittest.lua Lunatic: prefer to use ctype objects instead of C type strings. 2013-01-26 17:07:53 +00:00
build.lua Fix build.lua's loadarts(), add bigytiles.lua. 2012-12-23 14:00:00 +00:00
con_lang.lua Lunatic: simplify RETURN handling, make its behavior across events same as C-CON. 2013-03-24 18:54:56 +00:00
control.lua Add orientation bit 2048, enumerated as ROTATESPRITE_FULL16, which is a courtesy provided by the engine for the purpose of the game to internally force use of full 32-bit coordinates. With this bit set, all CON screen drawing commands can use rotatesprite16-like coordinates. 2013-03-25 04:31:58 +00:00
defs.ilua Lunatic: simplify RETURN handling, make its behavior across events same as C-CON. 2013-03-24 18:54:56 +00:00
defs_common.lua Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. 2013-03-24 18:54:14 +00:00
defs_m32.ilua Lunatic: provide access to actor-tsprite. 2013-02-01 13:05:20 +00:00
dis_x64.lua Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. 2013-03-24 18:54:14 +00:00
dis_x86.lua Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. 2013-03-24 18:54:14 +00:00
dump.lua Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. 2013-03-24 18:54:14 +00:00
dynsymlist Lunatic: simplify RETURN handling, make its behavior across events same as C-CON. 2013-03-24 18:54:56 +00:00
dynsymlist_m32 Lunatic: simplify RETURN handling, make its behavior across events same as C-CON. 2013-03-24 18:54:56 +00:00
findmaps.sh
foreachmap.lua build.lua: provide simplistic "readdefs()", use in foreachmap.lua. 2012-11-18 19:01:39 +00:00
geom.lua Lunatic: make ivec3 and dvec3 types share same metatable, orthogonalize API. 2013-03-21 10:20:27 +00:00
listglobals.sh Lunatic: gasping for some air. 2012-12-09 13:24:28 +00:00
lunacon.lua Lunatic translator: proper Lua->CON line mapping for actor/event/etc. headers. 2013-03-24 18:55:27 +00:00
lunatic_game.c Lunatic: simplify RETURN handling, make its behavior across events same as C-CON. 2013-03-24 18:54:56 +00:00
lunatic_game.h Lunatic: cancel logo on EVENT_LOGO error, fix CON mulscale and writable gv. 2013-03-24 18:52:41 +00:00
lunatic_m32.c Lunatic: fix stack discipline. 2013-01-01 15:24:11 +00:00
lunatic_m32.h Lunatic reorganization part 2: split into engine and editor/game parts. 2012-11-10 20:59:00 +00:00
map2text.lua
mapastats.lua
mapdiff.sh
mapstats.lua
mapypan.lua
profdemo.lua Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
randgen.lua Lunatic: better protection of array members inside structs. 2012-11-25 13:18:52 +00:00
stat.lua Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
strict.lua
test.elua Lunatic: actor usertypes from CON, set SFLAGs as 2nd gameactor() arg in Lua. 2013-03-24 18:53:28 +00:00
v.lua Lunatic: fixups and debugging helpers. 2013-02-28 17:30:04 +00:00
xmath.lua Lunatic translator: fix some codegen and some commands. 2013-03-03 16:06:22 +00:00