mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Merged New Inventory Project into main branch
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#ifndef __ROAD_SMOOTHING_H
|
||||
#define __ROAD_SMOOTHING_H
|
||||
|
||||
//There are the 32 macro definitions that make up all of the road pieces. These enumerations
|
||||
//There are the 32 macro definitions that make up all of the road pieces. These enumerations
|
||||
//match up exactly to the previous road system order of graphics (FIRSTROAD1 - FIRSTROAD32)
|
||||
enum
|
||||
{
|
||||
@@ -21,7 +21,7 @@ enum
|
||||
RTL, //right top-left corner piece
|
||||
RBR, //right bottom-right corner piece
|
||||
LBR, //left bottom-right corner piece
|
||||
L2, //left 2 (variation of the left 1)
|
||||
L2, //left 2 (variation of the left 1)
|
||||
R2, //right 2
|
||||
L3, //left 3
|
||||
R3, //right 3
|
||||
@@ -32,7 +32,7 @@ enum
|
||||
BI, //bottom intersection (piece connecting bottom to right)
|
||||
LI, //left intersection (piece connecting left to bottom )
|
||||
TI, //top intersection (piece connecting top to left)
|
||||
RI, //right intersection (piece connection right to top)
|
||||
RI, //right intersection (piece connection right to top)
|
||||
L4, //left 4
|
||||
R4, //right 4
|
||||
B4, //bottom 4
|
||||
@@ -44,14 +44,14 @@ enum
|
||||
NUM_ROAD_MACROS
|
||||
};
|
||||
|
||||
//The old road system used multi-tiled roads as a single image. The new road system has taken these large
|
||||
//pieces and chopped them up into single tiled images (to mitigate lighting problems). Some of the larger
|
||||
//road pieces turned into 18 smaller pieces. So this function will go analyse the world, and replaces any
|
||||
//The old road system used multi-tiled roads as a single image. The new road system has taken these large
|
||||
//pieces and chopped them up into single tiled images (to mitigate lighting problems). Some of the larger
|
||||
//road pieces turned into 18 smaller pieces. So this function will go analyse the world, and replaces any
|
||||
//locations containing the original road tile information, delete it, and replace it by inserting it's
|
||||
//equivalent macro.
|
||||
void ReplaceObsoleteRoads();
|
||||
|
||||
//Road macros vary in size from 3 gridnos to 18 gridnos. Using the anchor gridno based off of the original
|
||||
//Road macros vary in size from 3 gridnos to 18 gridnos. Using the anchor gridno based off of the original
|
||||
//road system, this function will place the new macro (consisting of multiple road pieces in multiple
|
||||
//gridnos).
|
||||
void PlaceRoadMacroAtGridNo( INT32 iMapIndex, INT32 iMacroID );
|
||||
|
||||
Reference in New Issue
Block a user