diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-04 04:00:33 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-04 04:00:33 +0200 |
commit | cc56292bc503d5aaa96c5146480ab8bd1b6b0488 (patch) | |
tree | 77949cc32155e844b34c75f856f79ff3f3ad9cec /src/modelinfo | |
parent | Even more CPed (diff) | |
parent | Merge pull request #107 from Nick007J/master (diff) | |
download | re3-cc56292bc503d5aaa96c5146480ab8bd1b6b0488.tar re3-cc56292bc503d5aaa96c5146480ab8bd1b6b0488.tar.gz re3-cc56292bc503d5aaa96c5146480ab8bd1b6b0488.tar.bz2 re3-cc56292bc503d5aaa96c5146480ab8bd1b6b0488.tar.lz re3-cc56292bc503d5aaa96c5146480ab8bd1b6b0488.tar.xz re3-cc56292bc503d5aaa96c5146480ab8bd1b6b0488.tar.zst re3-cc56292bc503d5aaa96c5146480ab8bd1b6b0488.zip |
Diffstat (limited to 'src/modelinfo')
-rw-r--r-- | src/modelinfo/ModelIndices.h | 11 | ||||
-rw-r--r-- | src/modelinfo/VehicleModelInfo.cpp | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h index 3a37ac23..ff350b55 100644 --- a/src/modelinfo/ModelIndices.h +++ b/src/modelinfo/ModelIndices.h @@ -330,6 +330,12 @@ enum MI_BOMB, MI_FINGERS, + MI_CUTOBJ01 = 185, + MI_CUTOBJ02, + MI_CUTOBJ03, + MI_CUTOBJ04, + MI_CUTOBJ05, + MI_CAR_DOOR = 190, MI_CAR_BUMPER, MI_CAR_PANEL, @@ -345,6 +351,11 @@ enum NUM_DEFAULT_MODELS, }; +enum{ + NUM_OF_SPECIAL_CHARS = 4, + NUM_OF_CUTSCENE_OBJECTS = 5 +}; + void InitModelIndices(void); void MatchModelString(const char *name, int16 id); diff --git a/src/modelinfo/VehicleModelInfo.cpp b/src/modelinfo/VehicleModelInfo.cpp index 78eee96c..0d206db0 100644 --- a/src/modelinfo/VehicleModelInfo.cpp +++ b/src/modelinfo/VehicleModelInfo.cpp @@ -875,6 +875,7 @@ CreateCarColourTexture(uint8 r, uint8 g, uint8 b) pixels[14] = b; pixels[15] = 0xFF; RwImageSetPixels(img, pixels); + RwImageSetStride(img, 8); RwImageSetPalette(img, nil); RwImageFindRasterFormat(img, rwRASTERTYPETEXTURE, &width, &height, &depth, &format); ras = RwRasterCreate(width, height, depth, format); |