dMZX Forums: "push SOUTH" broken for SliderNS -> Archived MegaZeux Bugs -> Tracker

Jump to content

Report ID 630 Title "push SOUTH" broken for SliderNS
Product Archived MegaZeux Bugs Status Fixed (Severity 1 - Low)
Version 2.84c Fixed in GIT
Introduced In Version ----Operating System Windows 10 64-bit

Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Report ID #630: "push SOUTH" broken for SliderNS

#1 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,949
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 15 May 2017 - 07:42 PM

Pretty straightforward. The Robotic command "push" pushes anything I try (the player, pushable robots, boulders, the SliderEW) like it's supposed to, except the SliderNS when combined specifically with the direction SOUTH.

Notes:
  • SliderNS can be pushed to the NORTH with this command, just not SOUTH.
  • It doesn't matter if it's just one SliderNS or a row of them; it won't push them.
  • If a non-bugged type is followed by one or more SliderNS, the type and everything next to it will be pushed correctly.

"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository


Page 1 of 1  
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Replies (1 - 4)

#2 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,949
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 15 May 2017 - 08:12 PM

Updating status to: Confirmed
Updating severity to: 1 - Low

This happens because the direction check in the push command assumes NORTH = 0, SOUTH = 1, EAST = 2, WEST = 3, when actually NORTH = 1, SOUTH = 2, EAST = 3, WEST = 4. SliderNS is the only type that uses A_PUSHNS exclusively, so it's the only type affected.

run_robot.c line 4917
              if((d_id == ROBOT_PUSHABLE) || (d_id == PLAYER) ||
               ((push_dir < 2) && (d_flag & A_PUSHNS)) ||
               ((push_dir >= 2) && (d_flag & A_PUSHEW)))


data.h line 186
enum dir
{
  IDLE    = 0,
  NORTH   = 1,
  SOUTH   = 2,
  EAST    = 3,
  WEST    = 4,


A separate variable int_dir is created which does fit the expectations of the code here (as it is the result of evaluating push_dir), and this variable is the one that ultimately makes it to the push function. So, push_dir should be replaced with int_dir in this check.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#3 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,949
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 15 May 2017 - 08:46 PM

Updating status to: Fixed
Issue fixed in: GIT (debytecode)

Fixed in 1c49a2d.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#4 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,949
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 17 May 2017 - 06:44 PM

Issue fixed in: GIT
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#5 User is offline  
Terryn 

  • ******
  • Group: DigiStaff
  • Posts: 2,966
  • Joined: 12-October 00
  • Gender:Male

Posted 29 June 2017 - 07:07 AM

Moving to: Archived MegaZeux Bugs


Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

0 User(s) are reading this issue
0 Guests and 0 Anonymous Users


Powered by IP.Tracker 1.3.2 © 2025  IPS, Inc.