[Fixed] [SW $yamato.map] Battleship cannon acts weirdly

Moderator: Raze Developers

[SW $yamato.map] Battleship cannon acts weirdly

Postby Talon1024 » Tue May 11, 2021 9:17 pm

On Shadow Warrior's $yamato.map (Floating Fortress), there is a battleship cannon which you can aim. However, it acts weirdly in Raze. If you try turning it right, it seems to work as expected, but if you try turning it left, its angle is reset to the rightmost angle.

Here's a saved game from the spot in question. I can provide a savegame for the DOS executable for the GOG.com version of Shadow Warrior if needed.

Also, if this is an issue with using clamp() on angles, I wrote a function to clamp angles for Wolfenstein: Blade of Agony, so feel free to look at it or even use it.
Talon1024
 
 
 
Joined: 27 Jun 2016
Github ID: Talon1024
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [SW $yamato.map] Battleship cannon acts weirdly

Postby Graf Zahl » Wed May 12, 2021 12:20 am

This still works fine in 1.0.3 so it must be some recent cleanup work on the angle code which did this.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [SW $yamato.map] Battleship cannon acts weirdly

Postby Graf Zahl » Wed May 12, 2021 1:11 am

Fixed.
There were some issues with the sign of the angle variables that made the overflow checks fail.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests