Репозитории ALT
S: | 1.3.7-alt2 |
5.1: | 1.3.0-alt5 |
4.1: | 1.3.0-alt2.M41.3 |
3.0: | 1.2.2-alt2 |
Группа :: Игры/Спорт
Пакет: TORCS
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: torcs-glibc.patch
Скачать
Скачать
--- src/modules/graphic/ssggraph/grtexture.cpp.orig 2006-11-05 04:42:26 +0300
+++ src/modules/graphic/ssggraph/grtexture.cpp 2009-05-24 13:33:10 +0400
@@ -47,10 +47,11 @@ bool doMipMap(const char *tfname, int mi
}
if (mipmap == TRUE) {
+ const char *s;
// Check the shadow.
s = strrchr(tfname, '/');
if (s == NULL) {
- s = (char *) tfname;
+ s = tfname;
} else {
s++;
}
--- src/tools/trackgen/objects.cpp.orig 2006-11-05 04:42:31 +0300
+++ src/tools/trackgen/objects.cpp 2009-05-24 13:37:30 +0400
@@ -273,7 +273,7 @@ ssgSaveLeaf (ssgEntity *ent, FILE *save_
if ((tfname != NULL) && (tfname[0] != 0)) {
if (writeTextureWithoutPath) {
- char *s = strrchr (tfname, '\\');
+ const char *s = strrchr (tfname, '\\');
if (s == NULL) {
s = strrchr (tfname, '/');