mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'binary-thing-options' into 'next'
Clear thing flags for NiGHTS bumpers/hoops again Closes #1097 See merge request STJr/SRB2!2118
This commit is contained in:
commit
ac3e9fc999
1 changed files with 2 additions and 0 deletions
|
@ -6783,6 +6783,7 @@ static void P_ConvertBinaryThingTypes(void)
|
|||
break;
|
||||
case 1704: //NiGHTS bumper
|
||||
mapthings[i].pitch = 30 * (((mapthings[i].options & 15) + 9) % 12);
|
||||
mapthings[i].options &= ~0xF;
|
||||
break;
|
||||
case 1705: //Hoop
|
||||
case 1713: //Hoop (Customizable)
|
||||
|
@ -6791,6 +6792,7 @@ static void P_ConvertBinaryThingTypes(void)
|
|||
mapthings[i].angle = (mapthings[i].extrainfo == 1) ? oldangle - 90 : ((oldangle >> 8)*360)/256;
|
||||
mapthings[i].pitch = (mapthings[i].extrainfo == 1) ? oldangle / 360 : ((oldangle & 255)*360)/256;
|
||||
mapthings[i].args[0] = (mapthings[i].type == 1705) ? 96 : (mapthings[i].options & 0xF)*16 + 32;
|
||||
mapthings[i].options &= ~0xF;
|
||||
mapthings[i].type = 1713;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue