mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-13 09:52:01 -04:00
some fixes in win
This commit is contained in:
parent
2d7697174d
commit
02f5d21c32
3 changed files with 11 additions and 11 deletions
|
@ -37,7 +37,7 @@ static short zooming_points[ZOOM_PHASES][4]
|
||||||
{480,271,80,28},
|
{480,271,80,28},
|
||||||
{460,259,90,31}
|
{460,259,90,31}
|
||||||
};
|
};
|
||||||
static int zooming_step=2;
|
static int zooming_step=1;
|
||||||
static int rot_phases=1;
|
static int rot_phases=1;
|
||||||
//int yreq;
|
//int yreq;
|
||||||
int last_scale;
|
int last_scale;
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
static TMPFILE_WR *story=NULL;
|
static TMPFILE_WR *story=NULL;
|
||||||
static char load_another;
|
static char load_another;
|
||||||
static unsigned long current_campaign = 0;
|
static unsigned long current_campaign = 0;
|
||||||
static long prev_game_time_save = 0;
|
static long prev_game_time_save = -999;
|
||||||
|
|
||||||
char reset_mobiles=0;
|
char reset_mobiles=0;
|
||||||
|
|
||||||
|
@ -617,14 +617,14 @@ int save_basic_info()
|
||||||
s.game_time=game_time;
|
s.game_time=game_time;
|
||||||
s.enable_sort=enable_sort;
|
s.enable_sort=enable_sort;
|
||||||
s.sleep_long=sleep_ticks;
|
s.sleep_long=sleep_ticks;
|
||||||
s.sample_vol=get_snd_effect(SND_GFX);
|
s.sample_vol=MIN(get_snd_effect(SND_GFX),255);
|
||||||
s.music_vol=get_snd_effect(SND_MUSIC);
|
s.music_vol=MIN(get_snd_effect(SND_MUSIC),255);
|
||||||
s.xbass=get_snd_effect(SND_XBASS);
|
s.xbass=MIN(get_snd_effect(SND_XBASS),255);
|
||||||
s.bass=get_snd_effect(SND_BASS);
|
s.bass=MIN(get_snd_effect(SND_BASS),255);
|
||||||
s.treble=get_snd_effect(SND_TREBL);
|
s.treble=MIN(get_snd_effect(SND_TREBL),255);
|
||||||
s.stereing=get_snd_effect(SND_LSWAP);
|
s.stereing=MIN(get_snd_effect(SND_LSWAP),255);
|
||||||
s.swapchans=get_snd_effect(SND_SWAP);
|
s.swapchans=MIN(get_snd_effect(SND_SWAP),255);
|
||||||
s.out_filter=get_snd_effect(SND_OUTFILTER);
|
s.out_filter=MIN(get_snd_effect(SND_OUTFILTER),255);
|
||||||
s.autosave=autosave_enabled;
|
s.autosave=autosave_enabled;
|
||||||
s.game_flags=(enable_glmap!=0);
|
s.game_flags=(enable_glmap!=0);
|
||||||
strcopy_n(s.level_name,level_fname,sizeof(s.level_name));
|
strcopy_n(s.level_name,level_fname,sizeof(s.level_name));
|
||||||
|
|
|
@ -388,7 +388,7 @@ const void *load_mob_legacy_format(const void *p, int32_t *s) {
|
||||||
d+=nx;
|
d+=nx;
|
||||||
ofs=nx;
|
ofs=nx;
|
||||||
nx = sizeof(TMOB);
|
nx = sizeof(TMOB);
|
||||||
memcpy(d, c, nx - ofs); //last padding 1
|
memcpy(d, c, nx - ofs-1); //last padding 1
|
||||||
c+=nx - ofs - 1;
|
c+=nx - ofs - 1;
|
||||||
}
|
}
|
||||||
*s = count * sizeof(TMOB);
|
*s = count * sizeof(TMOB);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue