User Tag List

Results 1 to 1 of 1

Thread: [2.50.2] SizeOfArray() does not work on ffc, item, weapon, itemdata types. Also Trace() on these typ

  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,757
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.1%

    [2.50.2] SizeOfArray() does not work on ffc, item, weapon, itemdata types. Also Trace() on these typ

    Probably not a bug, but not consistent. SizeOfArray() doe snot work on types other than int, and float. While it's not practical to get it to work on bool types (although this is possible. it should work on the following types: ffc, lweapon, eweapon, item, itemdata.

    I can probably come up with code for making it work on bool types too.

    Furthermore, there is no Trace() function for these types. That should return their pointer.

    Boolean Arrays

    It's actually evident that the size of boolean arrays is preserved in ZScript/ZASM, unlike in C, as the console will list their size when trying to read beyond it. Can't we just fix SizeOfArray to read that value for bool 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