Code doesn't compile with RESPAWN_HACK enabled on trunk

Bug #336367 reported by Morgan Jones
2
Affects Status Importance Assigned to Milestone
Armagetron Advanced
Status tracked in Trunk
Trunk
Fix Committed
Wishlist
Manuel Moos

Bug Description

I enabled RESPAWN_HACK on trunk and it didn't compile. After looking at the code, I figured out that someone passed an extra function parameter to sg_RespawnPlayer.

What it should look like: sg_RespawnPlayer(grid, &arena, p);
What it actually looks like: sg_RespawnPlayer(time, grid, &arena, p);

sg_RespawnPlayer is declared as: void sg_RespawnPlayer(eGrid *grid, gArena *arena, ePlayerNetID *p)

I don't see a REAL time in there. The variable time isn't even used in the entire function.

This is on line 2962 of gGame.cpp.

description: updated
Revision history for this message
Manuel Moos (z-man) wrote :

Yep, the time variable was removed. Adapted the hack.

Changed in armagetronad:
assignee: nobody → z-man
importance: Undecided → Wishlist
milestone: none → 0.3.2
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.