use briefings with no extension

This commit is contained in:
Bradley Bell 2003-05-12 22:45:10 +00:00
parent 805e5230d5
commit 85180c6488
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2003-05-12 Bradley Bell <btb@icculus.org>
* main/titles.c: use briefings with no extension
0.2.3:
2003-04-30 Bradley Bell <btb@icculus.org>

3
NEWS
View file

@ -1,3 +1,6 @@
--- Version 0.2.4 ---
- Fix crash on some mission briefings
--- Version 0.2.3 ---
- Fix linking bug on OS X

View file

@ -1,4 +1,4 @@
/* $Id: titles.c,v 1.24 2003-03-01 12:50:45 btb Exp $ */
/* $Id: titles.c,v 1.25 2003-05-12 22:45:10 btb Exp $ */
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
@ -1207,8 +1207,8 @@ int load_screen_text(char *filename, char **buf)
char nfilename[30], *ptr;
strcpy(nfilename, filename);
ptr = strrchr(nfilename, '.');
*ptr = '\0';
if ((ptr = strrchr(nfilename, '.')))
*ptr = '\0';
strcat(nfilename, ".txb");
if ((ifile = cfopen(nfilename, "rb")) == NULL) {
mprintf ((0,"can't open %s!\n",nfilename));