shithub: cstory

Download patch

ref: 3dec17c5b514ccb560db9e17756a52ec4570879d
parent: a3aa64ed7ee2f008698966ef0c08d156aaf16f8b
author: Jacob Moody <moody@posixcafe.org>
date: Fri Dec 8 20:19:03 EST 2023

typos from un-c++-ification

--- a/src/Stage.cpp
+++ b/src/Stage.cpp
@@ -153,7 +153,7 @@
 	if (!ReloadBitmap_File(path, SURFACE_ID_LEVEL_TILESET))
 		bError = TRUE;
 
-	snprint(path, sizeof path, "%s/%s.pxa", path_dir, gTMT[no].map);
+	snprint(path, sizeof path, "%s/%s.pxa", path_dir, gTMT[no].parts);
 	if (!LoadAttributeData(path))
 		bError = TRUE;
 
--- a/src/TextScr.cpp
+++ b/src/TextScr.cpp
@@ -193,7 +193,7 @@
 	fclose(fp);
 
 	// Open stage's .tsc
-	snprint(path, sizeof path, "%s/%s", name);
+	snprint(path, sizeof path, "%s/%s", gDataPath, name);
 
 	body_size = GetFileSizeLong(path);
 	if (body_size == -1)