Skip to content

Commit

Permalink
fixed bug #69
Browse files Browse the repository at this point in the history
cg_autodrop should work now
  • Loading branch information
perle committed Jul 26, 2024
1 parent b6695dc commit 008a11c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
7 changes: 3 additions & 4 deletions engine/code/game/g_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,16 +1012,15 @@ void ClientUserinfoChanged( int clientNum ) {
}
#endif

// STONELANCE
// UPDATE: enable this
/*
// P3rlE
// UPDATE: Tryout Autodrop

s = Info_ValueForKey( userinfo, "cg_autodrop" );
if ( ! *s || atoi( s ) != 0 ) {
client->pers.autoDrop = qtrue;
} else {
client->pers.autoDrop = qfalse;
}
*/

s = Info_ValueForKey( userinfo, "cg_controlMode" );
if ( *s ) {
Expand Down
8 changes: 4 additions & 4 deletions engine/code/game/g_items.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,10 @@ Touch_Item
===============
*/
void Touch_Item (gentity_t *ent, gentity_t *other, trace_t *trace) {
int respawn;
int respawn;
qboolean predict;
// Q3Rally Code Start
// int i;
int i;
// Q3Rally Code END

if (!other->client)
Expand All @@ -458,7 +458,7 @@ void Touch_Item (gentity_t *ent, gentity_t *other, trace_t *trace) {
// STONELANCE
// FIXME: implement autoDrop
// autoDrop old weapon
/*

if ( ent->item->giType == IT_RFWEAPON && other->client->pers.autoDrop ){
for (i = RWP_SMOKE; i < WP_NUM_WEAPONS; i++){
if (ent->item->giTag == i) continue;
Expand All @@ -473,7 +473,7 @@ void Touch_Item (gentity_t *ent, gentity_t *other, trace_t *trace) {
}
}
}
*/

// END

// the same pickup rules are used for client side and server side
Expand Down
1 change: 1 addition & 0 deletions engine/code/game/g_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ typedef struct {
qboolean teamInfo; // send team overlay updates?
// STONELANCE
int controlMode; // control mode
int autoDrop; // autodrop
qboolean manualShift; // shift manually?
// END
} clientPersistant_t;
Expand Down
2 changes: 1 addition & 1 deletion engine/code/q3_ui/ui_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ void UI_MainMenu( void ) {
s_main.banner.generic.flags = QMF_INACTIVE;
s_main.banner.generic.x = 320;
s_main.banner.generic.y = 17;
s_main.banner.string = "Q3RALLY STANDALONE";
s_main.banner.string = "Q3RALLY";
s_main.banner.color = text_color_normal;
s_main.banner.style = UI_CENTER|UI_DROPSHADOW;

Expand Down
2 changes: 1 addition & 1 deletion engine/code/qcommon/q_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define BASETA "missionpack"

#ifndef PRODUCT_VERSION
#define PRODUCT_VERSION "v0.5_r591"
#define PRODUCT_VERSION "v0.5 r603"
#endif


Expand Down
Binary file modified q3rallycode.ppr
Binary file not shown.

0 comments on commit 008a11c

Please sign in to comment.