Misc. fixes.

This commit is contained in:
Steve 2018-02-06 22:27:28 +00:00
parent 220e3b99e9
commit fed96ef890
3 changed files with 3 additions and 8 deletions

View File

@ -74,17 +74,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define MAP_TILE_OUTSIDE 255
#define MAP_TILE_MAX 256
#define MAX_SPRITE_FRAMES 8
#define JUMP_POWER -12
#define MAX_OXYGEN (FPS * 10)
#define MAX_KEY_TYPES 12
#define MAX_KEY_TYPES 8
#define MAX_ITEMS 14
#define MAX_CHECKPOINTS 15
#define MAX_WIDGET_OPTIONS 8
#define MAX_ENTS_TO_OBSERVE 12
enum

View File

@ -594,7 +594,6 @@ void resetAtCheckpoint(void)
}
}
void die(void)
{
world.bob->flags &= ~EF_WEIGHTLESS;

View File

@ -62,7 +62,7 @@ void handleWidgetClick(int x, int y)
{
w->value++;
w->value %= MAX_WIDGET_OPTIONS;
w->value %= w->numOptions;
}
w->clicked = 1;
@ -75,7 +75,7 @@ void activeSelected(void)
{
selectedWidget->value++;
selectedWidget->value %= MAX_WIDGET_OPTIONS;
selectedWidget->value %= selectedWidget->numOptions;
}
selectedWidget->clicked = 1;