Small fixes

This commit is contained in:
Andrei Drexler 2002-06-02 00:15:07 +00:00
parent 148c1b3988
commit e710f28eb1
3 changed files with 47 additions and 4 deletions

View file

@ -6,6 +6,32 @@
--------------------Configuration: ui - Win32 Release TA--------------------
</h3>
<h3>Command Lines</h3>
Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP111.tmp" with contents
[
/nologo /G6 /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /Fp"Release_TA/ta_ui.pch" /YX /Fo"Release_TA/" /Fd"Release_TA/" /FD /c
"C:\Games\Quake3\rq3source\reaction\ta_ui\ui_shared.c"
]
Creating command line "cl.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP111.tmp"
Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP112.tmp" with contents
[
/nologo /base:"0x40000000" /dll /incremental:no /pdb:"Release_TA/uix86.pdb" /map:"Release_TA/uix86.map" /machine:I386 /def:".\ui.def" /out:"../Release/uix86.dll" /implib:"Release_TA/uix86.lib"
.\Release_TA\bg_misc.obj
.\Release_TA\q_math.obj
.\Release_TA\q_shared.obj
.\Release_TA\ui_atoms.obj
.\Release_TA\ui_gameinfo.obj
.\Release_TA\ui_main.obj
.\Release_TA\ui_players.obj
.\Release_TA\ui_shared.obj
.\Release_TA\ui_syscalls.obj
.\Release_TA\ui_util.obj
]
Creating command line "link.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP112.tmp"
<h3>Output Window</h3>
Compiling...
ui_shared.c
Linking...
Creating library Release_TA/uix86.lib and object Release_TA/uix86.exp

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.25 2002/06/02 00:15:07 makro
// Small fixes
//
// Revision 1.24 2002/05/29 13:30:19 makro
// Weapon/join menu tweaks
//
@ -3704,7 +3707,11 @@ static void UI_RunMenuScript(char **args) {
trap_Cvar_Set("cg_thirdPerson", "0");
trap_Cvar_Set("cg_cameraOrbit", "0");
trap_Cvar_Set("ui_singlePlayerActive", "0");
trap_Cmd_ExecuteText( EXEC_APPEND, va( "connect %s:%i\n", ui_RQ3_joinAddress.string, ui_RQ3_joinPort.integer) );
if (ui_RQ3_joinPort.value) {
trap_Cmd_ExecuteText( EXEC_APPEND, va( "connect %s:%i\n", ui_RQ3_joinAddress.string, ui_RQ3_joinPort.integer) );
} else {
trap_Cmd_ExecuteText( EXEC_APPEND, va( "connect %s\n", ui_RQ3_joinAddress.string) );
}
} else if (Q_stricmp(name, "FoundPlayerJoinServer") == 0) {
trap_Cvar_Set("ui_singlePlayerActive", "0");
if (uiInfo.currentFoundPlayerServer >= 0 && uiInfo.currentFoundPlayerServer < uiInfo.numFoundPlayerServers) {

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.16 2002/06/02 00:15:07 makro
// Small fixes
//
// Revision 1.15 2002/04/30 11:56:54 makro
// Stuff
//
@ -2373,9 +2376,16 @@ qboolean Item_TextField_HandleKey(itemDef_t *item, int key) {
if (key == 'h' - 'a' + 1 ) { // ctrl-h is backspace
if ( item->cursorPos > 0 ) {
memmove( &buff[item->cursorPos - 1], &buff[item->cursorPos], len + 1 - item->cursorPos);
item->cursorPos--;
if (item->cursorPos < editPtr->paintOffset) {
editPtr->paintOffset--;
//Makro - changed from --; doesn't make much sense, but things don't always do
item->cursorPos -= 1;
//if (item->cursorPos < editPtr->paintOffset) {
if (item->cursorPos <= editPtr->paintOffset) {
//Makro - changed
//editPtr->paintOffset--;
if (item->cursorPos > 0)
editPtr->paintOffset = item->cursorPos - 1;
else
editPtr->paintOffset = 0;
}
}
DC->setCVar(item->cvar, buff);