Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37571039
en ru br
ALT Linux repos
S:1.3.7-alt2
5.0: 1.3.0-alt4.M50.5
4.1: 1.3.0-alt2.M41.3
3.0: 1.2.2-alt2

Group :: Games/Sports
RPM: TORCS

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: torcs-glibc.patch
Download


--- 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, '/');
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin