aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-01 19:47:47 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-01 19:47:47 +0000
commit6678152ca8091c8ef07deb0e0c46e38cf9ee149e (patch)
treef08cf6625d63aa76b7fa3727079e629411d3b746 /code/renderer
parentf128ee5f91cb8460658ec14ac39daab6f98b6bc4 (diff)
downloadioquake3-aero-6678152ca8091c8ef07deb0e0c46e38cf9ee149e.tar.gz
ioquake3-aero-6678152ca8091c8ef07deb0e0c46e38cf9ee149e.zip
5+2==7 :-)
git-svn-id: svn://svn.icculus.org/quake3/trunk@207 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/renderer')
-rw-r--r--code/renderer/tr_image.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/code/renderer/tr_image.c b/code/renderer/tr_image.c
index 8967e02..15d6c7e 100644
--- a/code/renderer/tr_image.c
+++ b/code/renderer/tr_image.c
@@ -1154,11 +1154,11 @@ static void LoadTGA ( const char *name, byte **pic, int *width, int *height)
memcpy(&targa_header.colormap_index, &buf_p[3], 2);
memcpy(&targa_header.colormap_length, &buf_p[5], 2);
- targa_header.colormap_size = buf_p[8];
- memcpy(&targa_header.x_origin, &buf_p[9], 2);
- memcpy(&targa_header.y_origin, &buf_p[11], 2);
- memcpy(&targa_header.width, &buf_p[13], 2);
- memcpy(&targa_header.height, &buf_p[15], 2);
+ targa_header.colormap_size = buf_p[7];
+ memcpy(&targa_header.x_origin, &buf_p[8], 2);
+ memcpy(&targa_header.y_origin, &buf_p[10], 2);
+ memcpy(&targa_header.width, &buf_p[12], 2);
+ memcpy(&targa_header.height, &buf_p[14], 2);
targa_header.pixel_size = buf_p[16];
targa_header.attributes = buf_p[17];