Revision r2533
👤 helixhorned
📅 2012-03-25 15:01:21 -0700 (Sun, 25 Mar 2012)
Bound-check the 'picnum' argument to rotatesprite; tweak CON digitalnumber check.
There are instances where oob picnums may propagate to that function, so
protect it. The digitanumber[z] bound check is actually made more permissive,
but could also just as well be removed now.
Revision r2532
👤 helixhorned
📅 2012-03-25 15:01:03 -0700 (Sun, 25 Mar 2012)
Accumulated trivia.
- engine.c: move some variables into a lower block
- premap.c: clearbufbyte --> Bmemset
Revision r2531
👤 helixhorned
📅 2012-03-25 15:00:42 -0700 (Sun, 25 Mar 2012)
Take over more correct G_AddGroup from game.c to astub.c.
The code in the editor was potentially doing a strcat on a strdup'd string.
Also, rename AddGamePath to G_AddPath in astub.c and add CODEDUP markers
because shared stuff like this ought to be factored out into a separate
source file some time.
Revision r2530
👤 helixhorned
📅 2012-03-25 15:00:27 -0700 (Sun, 25 Mar 2012)
Allow up to 7 skills, coded by M210 and taken over with modifications.
Skill names are defined via 'defineskillname' as before, but the index
of the last non-empty skill name (plus one) is taken as the skill count.
So, if you only define the 6th, there will be no effect.
Note that currently, there is no way to specify less than four skills
because the CON parser doesn't allow the empty string for the name (it'll
go beyond the line) and because the default skill names are initialized in
EDuke32 too, in addition to the CONs.
------------------------------------------------------------------------
Raw Content
------------------------------------------------------------------------
r2534 | helixhorned | 2012-03-25 15:01:36 -0700 (Sun, 25 Mar 2012) | 1 line
Lunatic: more complex gamevar-decl code.
------------------------------------------------------------------------
r2533 | helixhorned | 2012-03-25 15:01:21 -0700 (Sun, 25 Mar 2012) | 5 lines
Bound-check the 'picnum' argument to rotatesprite; tweak CON digitalnumber check.
There are instances where oob picnums may propagate to that function, so
protect it. The digitanumber[z] bound check is actually made more permissive,
but could also just as well be removed now.
------------------------------------------------------------------------
r2532 | helixhorned | 2012-03-25 15:01:03 -0700 (Sun, 25 Mar 2012) | 4 lines
Accumulated trivia.
- engine.c: move some variables into a lower block
- premap.c: clearbufbyte --> Bmemset
------------------------------------------------------------------------
r2531 | helixhorned | 2012-03-25 15:00:42 -0700 (Sun, 25 Mar 2012) | 6 lines
Take over more correct G_AddGroup from game.c to astub.c.
The code in the editor was potentially doing a strcat on a strdup'd string.
Also, rename AddGamePath to G_AddPath in astub.c and add CODEDUP markers
because shared stuff like this ought to be factored out into a separate
source file some time.
------------------------------------------------------------------------
r2530 | helixhorned | 2012-03-25 15:00:27 -0700 (Sun, 25 Mar 2012) | 9 lines
Allow up to 7 skills, coded by M210 and taken over with modifications.
Skill names are defined via 'defineskillname' as before, but the index
of the last non-empty skill name (plus one) is taken as the skill count.
So, if you only define the 6th, there will be no effect.
Note that currently, there is no way to specify less than four skills
because the CON parser doesn't allow the empty string for the name (it'll
go beyond the line) and because the default skill names are initialized in
EDuke32 too, in addition to the CONs.
------------------------------------------------------------------------