game: tiny optimizations in g_cmds.c