Misc. fixes.
This commit is contained in:
parent
220e3b99e9
commit
fed96ef890
|
@ -74,17 +74,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#define MAP_TILE_OUTSIDE 255
|
#define MAP_TILE_OUTSIDE 255
|
||||||
#define MAP_TILE_MAX 256
|
#define MAP_TILE_MAX 256
|
||||||
|
|
||||||
#define MAX_SPRITE_FRAMES 8
|
|
||||||
|
|
||||||
#define JUMP_POWER -12
|
#define JUMP_POWER -12
|
||||||
#define MAX_OXYGEN (FPS * 10)
|
#define MAX_OXYGEN (FPS * 10)
|
||||||
#define MAX_KEY_TYPES 12
|
#define MAX_KEY_TYPES 8
|
||||||
#define MAX_ITEMS 14
|
#define MAX_ITEMS 14
|
||||||
|
|
||||||
#define MAX_CHECKPOINTS 15
|
#define MAX_CHECKPOINTS 15
|
||||||
|
|
||||||
#define MAX_WIDGET_OPTIONS 8
|
|
||||||
|
|
||||||
#define MAX_ENTS_TO_OBSERVE 12
|
#define MAX_ENTS_TO_OBSERVE 12
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
|
@ -594,7 +594,6 @@ void resetAtCheckpoint(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void die(void)
|
void die(void)
|
||||||
{
|
{
|
||||||
world.bob->flags &= ~EF_WEIGHTLESS;
|
world.bob->flags &= ~EF_WEIGHTLESS;
|
||||||
|
|
|
@ -62,7 +62,7 @@ void handleWidgetClick(int x, int y)
|
||||||
{
|
{
|
||||||
w->value++;
|
w->value++;
|
||||||
|
|
||||||
w->value %= MAX_WIDGET_OPTIONS;
|
w->value %= w->numOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
w->clicked = 1;
|
w->clicked = 1;
|
||||||
|
@ -75,7 +75,7 @@ void activeSelected(void)
|
||||||
{
|
{
|
||||||
selectedWidget->value++;
|
selectedWidget->value++;
|
||||||
|
|
||||||
selectedWidget->value %= MAX_WIDGET_OPTIONS;
|
selectedWidget->value %= selectedWidget->numOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedWidget->clicked = 1;
|
selectedWidget->clicked = 1;
|
||||||
|
|
Loading…
Reference in New Issue