Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • EDuke32 EDuke32
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Richard Gobeille
  • EDuke32EDuke32
  • Issues
  • #111

Closed
Open
Created Sep 21, 2020 by Max Ylitalo@oasiz

EVENT_ANALYZESPRITES drawnsprites is not working correctly

How to repro: write "test.m32" in duke dir with the following contents and create a map with one or more wall/floor aligned sprites (voxels work too)

gamevar rotang 0 0
gamevar i 0 0

onevent EVENT_ANALYZESPRITES
    add rotang 4
    ifg rotang 2047 set rotang 0 
    for i drawnsprites
    {
        addlogvar i
        set tsprite[i].ang rotang
    }
endevent

Sector A with 1 sprite will show an i value of 0

Sector B with 4 sprites will show an i value of 0, 1, 2

Iterator verified to work by placing an addlogvar before endevent

What should happen: Sprites on screen should assume angle from rotang (visually, in tsprite)

What happens: Nothing -- It seems that iterator i doesn't work inside set tsprite[i].ang rotang despite appearing correctly on previous line

When set tsprite[i].ang rotang is replaced with a static number, such as 0 or 1 - the sprite(s) in question will rotate.

Edited Sep 21, 2020 by Max Ylitalo
Assignee
Assign to
Time tracking