diff options
Diffstat (limited to 'apps/plugins/sdl/progs/duke3d/Game/src/gamedef.c')
-rw-r--r-- | apps/plugins/sdl/progs/duke3d/Game/src/gamedef.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/plugins/sdl/progs/duke3d/Game/src/gamedef.c b/apps/plugins/sdl/progs/duke3d/Game/src/gamedef.c index 52e2abaed6..af58c45deb 100644 --- a/apps/plugins/sdl/progs/duke3d/Game/src/gamedef.c +++ b/apps/plugins/sdl/progs/duke3d/Game/src/gamedef.c | |||
@@ -1155,11 +1155,7 @@ uint8_t parsecommand(int readfromGRP) | |||
1155 | break; | 1155 | break; |
1156 | } | 1156 | } |
1157 | } | 1157 | } |
1158 | #ifdef PLATFORM_UNIX | ||
1159 | volume_names[j][i] = '\0'; | 1158 | volume_names[j][i] = '\0'; |
1160 | #else | ||
1161 | volume_names[j][i-1] = '\0'; | ||
1162 | #endif | ||
1163 | return 0; | 1159 | return 0; |
1164 | case 108: | 1160 | case 108: |
1165 | scriptptr--; | 1161 | scriptptr--; |
@@ -1182,11 +1178,7 @@ uint8_t parsecommand(int readfromGRP) | |||
1182 | break; | 1178 | break; |
1183 | } | 1179 | } |
1184 | } | 1180 | } |
1185 | #if defined(PLATFORM_UNIX) || defined(PLATFORM_ROCKBOX) | ||
1186 | skill_names[j][i] = '\0'; | 1181 | skill_names[j][i] = '\0'; |
1187 | #else | ||
1188 | skill_names[j][i-1] = '\0'; | ||
1189 | #endif | ||
1190 | return 0; | 1182 | return 0; |
1191 | 1183 | ||
1192 | case 0: | 1184 | case 0: |
@@ -1212,11 +1204,7 @@ uint8_t parsecommand(int readfromGRP) | |||
1212 | break; | 1204 | break; |
1213 | } | 1205 | } |
1214 | } | 1206 | } |
1215 | #if defined(PLATFORM_UNIX) || defined(PLATFORM_ROCKBOX) | ||
1216 | level_names[j*11+k][i] = '\0'; | 1207 | level_names[j*11+k][i] = '\0'; |
1217 | #else | ||
1218 | level_names[j*11+k][i-1] = '\0'; | ||
1219 | #endif | ||
1220 | while( *textptr == ' ' ) textptr++; | 1208 | while( *textptr == ' ' ) textptr++; |
1221 | 1209 | ||
1222 | partime[j*11+k] = | 1210 | partime[j*11+k] = |
@@ -1247,11 +1235,7 @@ uint8_t parsecommand(int readfromGRP) | |||
1247 | break; | 1235 | break; |
1248 | } | 1236 | } |
1249 | } | 1237 | } |
1250 | #ifdef PLATFORM_UNIX | ||
1251 | level_names[j*11+k][i] = '\0'; | 1238 | level_names[j*11+k][i] = '\0'; |
1252 | #else | ||
1253 | level_names[j*11+k][i-1] = '\0'; | ||
1254 | #endif | ||
1255 | return 0; | 1239 | return 0; |
1256 | 1240 | ||
1257 | case 79: | 1241 | case 79: |
@@ -1570,11 +1554,7 @@ void loadefs(char *filenam, char *mptr, int readfromGRP) | |||
1570 | //ud.conCRC[0] = crc32_update((uint8_t *)textptr, fs, ud.conCRC[0]); | 1554 | //ud.conCRC[0] = crc32_update((uint8_t *)textptr, fs, ud.conCRC[0]); |
1571 | } | 1555 | } |
1572 | 1556 | ||
1573 | #ifdef PLATFORM_UNIX | ||
1574 | textptr[fs - 1] = 0; | 1557 | textptr[fs - 1] = 0; |
1575 | #else | ||
1576 | textptr[fs - 2] = 0; | ||
1577 | #endif | ||
1578 | 1558 | ||
1579 | clearbuf(actorscrptr,MAXSPRITES,0L); | 1559 | clearbuf(actorscrptr,MAXSPRITES,0L); |
1580 | clearbufbyte(actortype,MAXSPRITES,0L); | 1560 | clearbufbyte(actortype,MAXSPRITES,0L); |