User Tag List

Results 1 to 6 of 6

Thread: Strange Compiler Error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,766
    Level
    21
    vBActivity - Bars
    Lv. Percent
    70.04%
    Quote Originally Posted by Saffith View Post
    Link->Invisible needs it, too. I think that's the only other one.
    Shouldn't this be corrected in the repo before it's marked as fixed?
    It is corrected in the stuff that I have staged to merge. DarkDragon asked not to make any new commits until he finishes his internal changes. I can put the 2.50.2.1 source up separately if you want, but I do not have access to dump it to GH/AGN.

    Here is the revision for this fix for master:

    https://github.com/ZoriaRPG/ZeldaCla...eturn?expand=1

    I thought that marking a bug as 'sick' was the appropriate middle-ground between implementing the fix, and verifying that it was fixed in use?

    Here is the 2.50.2.1 code: https://github.com/ZoriaRPG/ZeldaClassic_2.53

    Edit: I re-applied the changes to the 2.50.x branch:
    https://github.com/ArmageddonGames/Z...oriaRPG:2.50.x

    Let's hope that I did not overlook anything, and that this compiles properly.

    Quote Originally Posted by ywkls View Post
    It does seem odd to me that this has never turned up before, but I figured it would be an easy fix.

    I'm guessing that the setters were all correct, otherwise they'd have complained long hence. There's no telling why the getters were wrong.
    Aye. The setters are fine, and as I said, i suspect it is because the syntax if ( Link->CollDetection ) or if ( Link->Invisible ) is cleaner, or easier to type, and read; as compared to if ( foo == true ) . It is also less error-prone, as you cannot have an assign here where you intend a compare, when doing a simple boolean evaluation, so fewer people use == true in these cases.

    Similarly, most users will do if ( !foo ) rather than if ( foo == false ). I would still have expected it to be reported before, but the userbase is clearly not reporting issues when they should, and they try to find hacks, or workarounds to the, rather than alerting us fix them.

    Internally all of these values are integers. Only the ZScript parser distinguishes between float, and bool; or other types.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social