User Activity

  • Modified a comment on ticket #57 on quake2xp

    еще один фикс. Без него периодически падало, когда стреляешь во врага --- game/g_modeltrace.c (revision 1522) +++ game/g_modeltrace.c (working copy) @@ -142,6 +142,8 @@ } } +static int model_index_max = sizeof(models) / sizeof(model_to_TRmesh_t); + modelTR_t* TR_Model_Get(const char* name, int *index){ for (int i = 0; i < sizeof(models) / sizeof(model_to_TRmesh_t); ++i) @@ -159,7 +161,7 @@ modelTR_t *TR_Model_Get_by_Index(int index) { - if (!index) + if (!index || index > model_index_max) return...

  • Posted a comment on ticket #57 on quake2xp

    еще один фикс. Без него периодически падало, когда стреляешь во врага --- game/g_modeltrace.c (revision 1522) +++ game/g_modeltrace.c (working copy) @@ -142,6 +142,8 @@ } } +static int model_index_max = sizeof(models) / sizeof(model_to_TRmesh_t); + modelTR_t* TR_Model_Get(const char* name, int *index){ for (int i = 0; i < sizeof(models) / sizeof(model_to_TRmesh_t); ++i) @@ -159,7 +161,7 @@ modelTR_t *TR_Model_Get_by_Index(int index) { - if (!index) + if (!index || index > model_index_max) return...

  • Modified a comment on ticket #57 on quake2xp

    плюс еще вот с этим игра уже запускается, будучи собранной с -O2 (да и с -O3) $ svn diff -- trunk/renderer/r_vertexObjects.c Index: trunk/renderer/r_vertexObjects.c =================================================================== --- trunk/renderer/r_vertexObjects.c (revision 1518) +++ trunk/renderer/r_vertexObjects.c (working copy) @@ -184,8 +184,8 @@ float oneKb = 1024.0f; float oneMb = oneKb * oneKb; - static int current; - static char output[6][13]; + static int current = 0; + static char...

  • Modified a comment on ticket #57 on quake2xp

    прюс еще вот с этим игра уже запускается, будучи собранной с -O2 (да и с -O3) $ svn diff -- trunk/renderer/r_vertexObjects.c Index: trunk/renderer/r_vertexObjects.c =================================================================== --- trunk/renderer/r_vertexObjects.c (revision 1518) +++ trunk/renderer/r_vertexObjects.c (working copy) @@ -184,8 +184,8 @@ float oneKb = 1024.0f; float oneMb = oneKb * oneKb; - static int current; - static char output[6][13]; + static int current = 0; + static char...

  • Posted a comment on ticket #57 on quake2xp

    прюс еще вот с этим игра уже запускается, будучи собранной с -O2 $ svn diff -- trunk/renderer/r_vertexObjects.c Index: trunk/renderer/r_vertexObjects.c =================================================================== --- trunk/renderer/r_vertexObjects.c (revision 1518) +++ trunk/renderer/r_vertexObjects.c (working copy) @@ -184,8 +184,8 @@ float oneKb = 1024.0f; float oneMb = oneKb * oneKb; - static int current; - static char output[6][13]; + static int current = 0; + static char output[8][13];...

  • Posted a comment on ticket #57 on quake2xp

    trunk $ svn diff Index: client/cg_screen.c =================================================================== --- client/cg_screen.c (revision 1518) +++ client/cg_screen.c (working copy) @@ -324,7 +324,7 @@ < CMD_BACKUP - 1) return; - Draw_ScaledPic(scr_vrect.x, scr_vrect.y, ui_fontScale->value, ui_fontScale->value, 0, i_net, "null"); + Draw_ScaledPic(scr_vrect.x, scr_vrect.y, ui_fontScale->value, ui_fontScale->value, 0, i_net, NULL); } /* @@ -564,10 +564,10 @@ ** all other models are sorted by...

View All

Personal Data

Username:
eegorov
Joined:
2024-08-23 10:55:59.094000

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB