This now allows switching between texture sets much easier than what
was previously possible.
NOTE: Files are currently set up for trunk's textures.
refs ticket:2013
(cherry picked from commit 696f6c251fe9359041e0905207843f79f0ee1d2a)
Frontend.wrf is *NOT* the main texture loader for MP games, we are
using limiter_tex.wrf for that, which is hardcoded in the sourcecode.
(This is same behavior as trunk)
(cherry picked from commit fb4a9e2797252b438a1b2fbfe14f71aa2a641b9b)
in MP games now.
The Super Transport can carry a max of 10 units, their weights are calculated by
Cyborg / light unit : 1 "slot" used
Medium unit : 2 "slots" used.
Heavy : 3 "slots" used.
The Super Transport becomes available after you reseach the cyborg transport,
and you research the Super Transport.
The stats of the Super Transport are NOT final.
Conflicts:
data/mp/stats/assignweapons.txt
data/mp/stats/templates.txt
src/order.c
from one place to another, and can also be used for quick lookups to see if a particular tile is threatened
by potential enemy fire. Patch review by SafetyOff and with help from Cyp.
These cases of bitshifting are premature optimisations ''only'',
especially since they obscure what's really going on (finding the center
of a range).
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
rendSurface isn't used by rendmode.c, so define it in piemode.c where it
is both used and its contents are defined.
Additionally remove unnecessary #includes from rendmode.h and include
the correct headers at places where rendmode.h was included.
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
Global pointer psRendSurface only ever contains &rendSurface (another
global), provided that it isn't undefined (isn't statically NULL
initialised). So replace the use of this pointer with using
rendSurface.
Additionally remove function iV_RenderAssign, which only wraps the
psRendSurface assignment along with a debug() call, and inline it at its
only call-site.
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
Remove the write only member variable `flags` from struct iSurface.
Additionally remove the macros REND_SURFACE_(UNDEFINED|SCREEN|USR) which
were only used to assign to the `flags` variable.
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
Slight reordering of the call to pie_RotateProject and turn a
todo-message comment in an actual TODO.
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
Mark the prototypes of all (fixed point) trigonometric functions as
pure. This declares that these functions don't have any side-effects.
Signed-off-by: Giel van Schijndel <giel@wz2100.net>