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 98
    • Issues 98
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Richard Gobeille
  • EDuke32EDuke32
  • Issues
  • #227
Closed
Open
Created Dec 16, 2021 by Dino Bollinger@dibollingerDeveloper

Duke3D: Parsing for negated CON labels does not work properly

While it is currently possible to negate gamevars (and constant integers) inside CON statements as such:

mul temp1 -temp2

The same is not possible for labels. The following code will throw a warning in the console, indicating that the label is being interpreted as a constant due to the negation that's placed in front:

define TEST 10
var temp 20 0

onevent EVENT_ALTFIRE
    set temp -TEST
    al temp
endevent

Console output after pressing Altfire:

CONLOGVAR: L=6 temp  (Global) =0

Not only does the parsing fail, it also produces a completely unexpected value.

Assignee
Assign to
Time tracking