User Tag List

Results 1 to 6 of 6

Thread: Strange Compiler Error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    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,765
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.82%
    Quote Originally Posted by Saffith View Post
    Huh. Yep, getCollDetection returns TYPE_FLOAT, and it's not the only one. Changing that shouldn't cause any problems, I don't think.
    Nah, I fixed it for 2.55/2.60, and I will apply the same fix in 2.53. I knew what it was as soon as @ywkls reported it on Skype, but I wanted him to post it here as a reminder for me.

    For the record, this affected CollDetection for lweapon, eweapon, and npc; but none of the other vars, or functions seem to have an incorrect return type at this time. My apologies if this created extra work for you @Saffith . I merely needed a reminder, and I asked @ywkls to post it in the dev chat. I didn't expect him to submit a full bug report, although it was nice of him to do that.

    Update: Fixed for 2.53/2.50.2.1.sheep, too.

    P.S. @ywkls : if ( ptr->CollDetection ) only worked because float is typecast to bool in that type of statement. When there is an explicit COMPARE to a boolean type (true/false), the proper bool return is mandatory. -- Clearly, no-one had ever tried if ( ptr->CollDetection = true ) in the past ???.

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