mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-05-30 17:00:48 +00:00
Update to ZDoom r1358:
- Added a CopyInfo function to FTexture that contains all code required to clone a texture. Used for creating warping textures. - Fixed: P_FindFloorCeiling should not be called before setting the actor's z- coordinate. For testing 3D Midtex lines and 3D floors the proper position needs to be set first. - Added option to specify the amount of ammo to be given by a WeaponGiver. - fixed: Identification of Doom1 Freedoom IWAD did not work. - fixed: UDMF did not initialize a sector's light colors. - fixed implementation of DF2_NOAUTOAIM flag. - fixed: Parsing of color strings with 6 characters and spaces did not work. - fixed: State labels must be evaluated for the state's owner, not the calling actor. git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@294 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
2b882c132b
commit
b2ae48bb67
24 changed files with 155 additions and 103 deletions
|
@ -370,17 +370,11 @@ void D_SetupUserInfo ()
|
|||
}
|
||||
if (autoaim > 35.f || autoaim < 0.f)
|
||||
{
|
||||
if (dmflags & DF2_NOAUTOAIM)
|
||||
coninfo->savedaimdist = ANGLE_1*35;
|
||||
else
|
||||
coninfo->aimdist = ANGLE_1*35;
|
||||
coninfo->aimdist = ANGLE_1*35;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dmflags & DF2_NOAUTOAIM)
|
||||
coninfo->savedaimdist = abs ((int)(autoaim * (float)ANGLE_1));
|
||||
else
|
||||
coninfo->aimdist = abs ((int)(autoaim * (float)ANGLE_1));
|
||||
coninfo->aimdist = abs ((int)(autoaim * (float)ANGLE_1));
|
||||
}
|
||||
coninfo->color = color;
|
||||
coninfo->skin = R_FindSkin (skin, 0);
|
||||
|
@ -690,16 +684,10 @@ void D_ReadUserInfoStrings (int i, BYTE **stream, bool update)
|
|||
angles = atof (value);
|
||||
if (angles > 35.f || angles < 0.f)
|
||||
{
|
||||
if (dmflags & DF2_NOAUTOAIM)
|
||||
info->savedaimdist = ANGLE_1*35;
|
||||
else
|
||||
info->aimdist = ANGLE_1*35;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dmflags & DF2_NOAUTOAIM)
|
||||
info->savedaimdist = abs ((int)(angles * (float)ANGLE_1));
|
||||
else
|
||||
info->aimdist = abs ((int)(angles * (float)ANGLE_1));
|
||||
}
|
||||
}
|
||||
|
@ -816,8 +804,11 @@ FArchive &operator<< (FArchive &arc, userinfo_t &info)
|
|||
arc.Read (&info.netname, sizeof(info.netname));
|
||||
}
|
||||
arc << info.team << info.aimdist << info.color << info.skin << info.gender << info.neverswitch;
|
||||
if (SaveVersion >= 1333) arc << info.savedaimdist;
|
||||
else info.savedaimdist = info.aimdist;
|
||||
if (SaveVersion >= 1333 && SaveVersion <= 1355)
|
||||
{
|
||||
int savedaimdist;
|
||||
arc << savedaimdist;
|
||||
}
|
||||
return arc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue