From 1b7948a20534828389139780eb6aa26a3a80c4c8 Mon Sep 17 00:00:00 2001 From: flowtron Date: Sat, 3 Jul 2010 14:53:19 +0000 Subject: [PATCH] redoing some whitespace fixes git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5273 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/client.cpp | 4 ++-- source/src/clientgame.cpp | 3 ++- source/src/renderhud.cpp | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/src/client.cpp b/source/src/client.cpp index b5451d6c..3662ae78 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -416,8 +416,8 @@ void c2sinfo(playerent *d) // send update to the server { packetbuf p(MAXTRANS); - if(sendmapidenttoserver) - { // new map + if(sendmapidenttoserver) // new map + { spawnallitems(); p.reliable(); putint(p, SV_MAPIDENT); diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 5773418e..366cbd72 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -589,7 +589,8 @@ bool bad_map() // this function makes a pair with good_map from clients2c bool tryrespawn() { - if ( m_mp(gamemode) && bad_map() ) { + if ( m_mp(gamemode) && bad_map() ) + { hudoutf("This map is not supported in multiplayer. Read the docs about map quality/dimensions."); } else if(spawnpermission > SP_OK_NUM) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 762de518..1d28e556 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -394,8 +394,6 @@ vec getradarpos() void drawradar(playerent *p, int w, int h) { -// vec center = showmap ? vec(ssize/2, ssize/2, 0) : p->o; int res = showmap ? ssize : radarres; - // improved center (for maps that don't use all worldspace) int gdim = max(mapdims[4], mapdims[5]); vec center = showmap ? vec(mapdims[0] + mapdims[4]/2, mapdims[1] + mapdims[5]/2, 0) : p->o; int res = showmap ? gdim : radarres;