ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:unpackshort

This is an old revision of the document!


Table of Contents

UnpackShortX

  • int UnpackShort1(int packed)
  • int UnpackShort2(int packed)

Description

Return the first and second two bytes of the integer interpreted as signed shorts respectively. Intended to extract values packed with PackShorts.

Examples

See PackShorts for examples.

functions/unpackshort.1489939425.txt.gz ยท Last modified: by korshun