Patch from hunter_rus

git-svn-id: https://svn.eduke32.com/eduke32@650 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-03-21 20:18:45 +00:00
parent 945e1b2357
commit 0e3fbdf05e
4 changed files with 5 additions and 4 deletions

View file

@ -4851,6 +4851,7 @@ void polymost_dorotatesprite(int sx, int sy, int z, short a, short picnum,
tspr.shade = dashade; tspr.shade = dashade;
tspr.pal = dapalnum; tspr.pal = dapalnum;
tspr.owner = uniqid+MAXSPRITES; tspr.owner = uniqid+MAXSPRITES;
sprite[tspr.owner].pal=dapalnum;
globalorientation = (dastat&1)+((dastat&32)<<4)+((dastat&4)<<1); globalorientation = (dastat&1)+((dastat&32)<<4)+((dastat&4)<<1);
if ((dastat&10) == 2) if ((dastat&10) == 2)

View file

@ -5079,7 +5079,7 @@ static void addgroup(const char *buffer)
CommandGrps = s; CommandGrps = s;
} }
static void checkcommandline(int argc,const char **argv) static void checkcommandline(int argc, const char **argv)
{ {
int i = 1; int i = 1;
char *c; char *c;

View file

@ -8895,7 +8895,7 @@ static int parsedefinitions_game(scriptfile *script, const int preload)
return 0; return 0;
} }
static int loaddefinitions_game(const char *fn, const int preload) static int loaddefinitions_game(const char *fn, int preload)
{ {
scriptfile *script; scriptfile *script;
@ -8945,7 +8945,7 @@ static void addgamepath(const char *buffer)
} }
static void checkcommandline(int argc,const char **argv) static void checkcommandline(int argc, const char **argv)
{ {
short i, j; short i, j;
char *c; char *c;

View file

@ -412,7 +412,7 @@ int loadplayer(int spot)
i = music_select; i = music_select;
music_select = (ud.volume_number*MAXLEVELS) + ud.level_number; music_select = (ud.volume_number*MAXLEVELS) + ud.level_number;
if (map[(unsigned char)music_select].musicfn != NULL && i != music_select) if (map[(unsigned char)music_select].musicfn != NULL && (i != music_select || env_music_fn[2][0]))
{ {
MUSIC_StopSong(); MUSIC_StopSong();
playmusicMAP(&map[(unsigned char)music_select].musicfn[0],music_select); playmusicMAP(&map[(unsigned char)music_select].musicfn[0],music_select);