Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8683 in orxonox.OLD


Ignore:
Timestamp:
Jun 21, 2006, 6:20:14 PM (18 years ago)
Author:
rennerc
Message:

player can type chatmessages with more than one word without typing "

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/util/multiplayer_team_deathmatch.cc

    r8643 r8683  
    610610  input->hide();
    611611  input->setText("");
    612  
    613   OrxShell::ShellCommand::execute( text );
    614 }
    615 
    616 
    617 
    618 
     612
     613  std::string command = text;
     614 
     615  //HACK insert " in say commands so user doesn't have to type them
     616  if ( command.length() >= 4 && command[0] == 's' && command[1] == 'a' && command[2] == 'y' && command[3] == ' ' )
     617  {
     618    command.insert( 4, "\"" );
     619    command = command + "\"";
     620  }
     621
     622  OrxShell::ShellCommand::execute( command );
     623}
     624
     625
     626
     627
Note: See TracChangeset for help on using the changeset viewer.