*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1097 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-06-02 19:10:50 +00:00
parent 929e93a4ec
commit 2bb92e9350
6 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ ENET_API int enet_address_get_host (const ENetAddress * address, char * hostName
ENET_API ENetPacket * enet_packet_create (const void *, size_t, enet_uint32);
ENET_API void enet_packet_destroy (ENetPacket *);
ENET_API int enet_packet_resize (ENetPacket *, size_t);
extern enet_uint32 enet_crc32 (const ENetBuffer *, size_t);
ENET_API enet_uint32 enet_crc32 (const ENetBuffer *, size_t);
ENET_API ENetHost * enet_host_create (const ENetAddress *, size_t, enet_uint32, enet_uint32);
ENET_API void enet_host_destroy (ENetHost *);
+2
View File
@@ -229,7 +229,9 @@ int main(int argc, char **argv)
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, fsaa);
}
#if SDL_VERSION_ATLEAST(1, 2, 11)
if(vsync>=0) SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, vsync);
#endif
int resize = SDL_RESIZABLE;
#if defined(WIN32) || defined(__APPLE__)
+1 -1
View File
@@ -218,7 +218,7 @@ struct md2 : vertmodel
if(!mdl.load(path(name1))) { delete[] pname; return false; }
}
Texture *skin;
loadskin(loadname, pname, skin, this);
loadskin(loadname, pname, skin);
loopv(mdl.meshes) mdl.meshes[i]->skin = skin;
if(skin==crosshair) conoutf("could not load model skin for %s", name1);
loadingmd2 = this;
+5 -5
View File
@@ -186,7 +186,7 @@ struct md3 : vertmodel
s_sprintfd(cfgname)("packages/models/%s/md3.cfg", loadname);
loadingmd3 = this;
if(execfile(cfgname)) // configured md3, will call the md3* commands below
if(execfile(cfgname) && parts.length()) // configured md3, will call the md3* commands below
{
delete[] pname;
loadingmd3 = NULL;
@@ -207,7 +207,7 @@ struct md3 : vertmodel
if(!mdl.load(path(name1))) { delete[] pname; return false; };
};
Texture *skin;
loadskin(loadname, pname, skin, this);
loadskin(loadname, pname, skin);
loopv(mdl.meshes) mdl.meshes[i]->skin = skin;
if(skin==crosshair) conoutf("could not load model skin for %s", name1);
}
@@ -236,7 +236,7 @@ void md3skin(char *objname, char *skin)
loopv(mdl.meshes)
{
md3::mesh &m = *mdl.meshes[i];
if(!strcmp(m.name, objname))
if(!strcmp(objname, "*") || !strcmp(m.name, objname))
{
s_sprintfd(spath)("%s/%s", md3dir, skin);
m.skin = textureload(spath);
@@ -255,8 +255,8 @@ void md3anim(char *anim, char *startframe, char *range, char *speed)
void md3link(char *parentno, char *childno, char *tagname)
{
if(!loadingmd3) { conoutf("not loading an md3"); return; };
int parent = atoi(parentno), child = atoi(childno);
if(max(parent, child) >= loadingmd3->parts.length() || min(parent, child) < 0) { conoutf("no models loaded to link"); return; };
int parent = ATOI(parentno), child = ATOI(childno);
if(!loadingmd3->parts.inrange(parent) || !loadingmd3->parts.inrange(child)) { conoutf("no models loaded to link"); return; }
if(!loadingmd3->parts[parent]->link(loadingmd3->parts[child], tagname)) conoutf("could not link model %s", loadingmd3->loadname);
}
+1 -1
View File
@@ -271,7 +271,7 @@ extern void rendershadow(playerent *d);
extern void rendermodel(char *mdl, int anim, int tex, float rad, float x, float y, float z, float yaw, float pitch, float speed = 0, int basetime = 0, playerent *d = NULL, char *vwepmdl = NULL, float scale = 1.0f);
extern mapmodelinfo &getmminfo(int i);
extern int findanim(const char *name);
extern void loadskin(const char *dir, const char *altdir, Texture *&skin, model *m);
extern void loadskin(const char *dir, const char *altdir, Texture *&skin);
extern model *loadmodel(const char *name, int i = -1);
extern void preload_playermodels();
extern void preload_entmodels();
+1 -1
View File
@@ -153,7 +153,7 @@ int findanim(const char *name)
return -1;
}
void loadskin(const char *dir, const char *altdir, Texture *&skin, model *m) // model skin sharing
void loadskin(const char *dir, const char *altdir, Texture *&skin) // model skin sharing
{
#define ifnoload if((skin = textureload(path))==crosshair)
s_sprintfd(path)("packages/models/%s/skin.jpg", dir);