Update some comments.

This commit is contained in:
Marco Cawthorne 2023-05-06 15:38:06 -07:00
parent b71e9f5f0e
commit 113063d54c
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 3 additions and 3 deletions

View File

@ -29,5 +29,5 @@ fetch_resource()
fetch_resource "http://archive.org/download/Half-lifeUplink/hluplink.exe" "Half-Life: Uplink"
fetch_resource "http://archive.org/download/half-life-patches/English/Update 1.1.1.0 English/hl1110.exe" "Half-Life: Patch 1.1.1.0"
fetch_resource "https://archive.org/download/opfor-demo/opfordemofull.exe" "Half-Life: Opposing Force - Demo"
fetch_resource "https://downloads.ammahls.com/HLSDK/hl_sdk_v23.exe"
fetch_resource "https://downloads.ammahls.com/HLSDK/hl_sdk_v23.exe" "Half-Life SDK v2.3"
fetch_resource "http://archive.org/download/steaminstall_halflife/steaminstall_halflife.exe" "Steam Installer with Half-Life Cache"

View File

@ -82,7 +82,7 @@ process_bmp(char *filename)
exit(0);
}
/* There are no other types of palette lumps. Sorry */
/* this is a 164x200 256-color BMP household */
stat(filename, &bmp_st);
if (bmp_st.st_size != 33878) {
fprintf(stderr, "%s has invalid player bitmap size, skipping\n", filename);
@ -95,7 +95,7 @@ process_bmp(char *filename)
fread(bmp_buffer, 1, 32800, fp);
fclose(fp);
/* convert from 8-bit to 24-bit */
/* convert from 8-bit to 24-bit and back */
for (int i = 0; i < 32800; i += 1) {
int palId = bmp_buffer[i] * 4;
/* get 24-bit values */